Class: ActiveStorage::Exif::Analyzer

Inherits:
Analyzer::ImageAnalyzer
  • Object
show all
Included in:
Railtie
Defined in:
lib/active_storage/exif/analyzer.rb

Overview

Uses MiniMagick to extract EXIF metadata from an image file. By extending ImageAnalyzer, all the error handling is done for us.

Instance Method Summary collapse

Instance Method Details

#metadataObject



13
14
15
# File 'lib/active_storage/exif/analyzer.rb', line 13

def 
  { exif: read_image(&:exif) }
end