lib/softcover/builders/epub.rb in softcover-0.9.13 vs lib/softcover/builders/epub.rb in softcover-0.9.15
- old
+ new
@@ -379,12 +379,12 @@
</html>
)
end
# Returns the name of the cover file.
- # We support (in order) JPG/JPEG, PNG, and TIF.
+ # We support (in order) JPG/JPEG, PNG, and TIFF.
def cover_img
- extensions = %w[jpg jpeg ng tif]
+ extensions = %w[jpg jpeg png tiff]
extensions.each do |ext|
file = Dir[path("#{images_dir}/cover.#{ext}")].first
return File.basename(file) if file
end
return false
\ No newline at end of file