Flowdock
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Superclass: Analyzer

Extracts width and height in pixels from an image blob.

If the image contains EXIF data indicating its angle is 90 or 270 degrees, its width and height are swapped for convenience.

Example:

ActiveStorage::Analyzer::ImageAnalyzer.new(blob).metadata
# => { width: 4104, height: 2736 }

This analyzer relies on the third-party MiniMagick gem. MiniMagick requires the ImageMagick system library.

Show files where this class is defined (1 file)
Register or log in to add new notes.