Class: ActiveStorage::Exif::Analyzer
- Inherits:
-
Analyzer::ImageAnalyzer
- Object
- Analyzer::ImageAnalyzer
- ActiveStorage::Exif::Analyzer
- 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
#metadata ⇒ Object
13 14 15 |
# File 'lib/active_storage/exif/analyzer.rb', line 13 def { exif: read_image(&:exif) } end |