Method: Assembly::ObjectFile#exif
- Defined in:
- lib/assembly/object_file.rb
#exif ⇒ MiniExiftool
Returns exif mini_exiftool gem object wrapper for exiftool.
77 78 79 80 81 82 83 84 85 86 |
# File 'lib/assembly/object_file.rb', line 77 def exif @exif ||= begin check_for_file MiniExiftool.new(path, replace_invalid_chars: '?') rescue MiniExiftool::Error # MiniExiftool may raise an error on files it doesn't know how to handle (disk images for example) # but we don't want this to prevent an ObjectFile from being created, so just swallow it. nil end end |