Project

General

Profile

« Previous | Next » 

Revision 0c0ae9d7

Added by Marc Dequènes almost 15 years ago

  • ID 0c0ae9d70cd3320a3f0f9de6fb102772dee1f445

[evol] don't crash when no EXIF data are found

View differences:

app/views/admin/artwork_step_images/show.rhtml
cat.content [_("File Size:"), @artwork_step_image.size]
end
table.category _("EXIF Infos") do |cat|
exif = Exif.new(@artwork_step_image.full_filename)
if exif.list_tags(Exif::IFD::EXIF).empty?
begin
exif = Exif.new(@artwork_step_image.full_filename)
if exif.list_tags(Exif::IFD::EXIF).empty?
cat.content _("No EXIF infos")
else
exif.each_entry { |a,b| cat.content [a, b] }
end
rescue
cat.content _("No EXIF infos")
else
exif.each_entry { |a,b| cat.content [a, b] }
end
end
table.category _("Artwork Step Status") do |cat|

Also available in: Unified diff