Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Superclass: Analyzer

Active Storage Image Analyzer

This is an abstract base class for image analyzers, which extract width and height 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::ImageMagick.new(blob).metadata
# => { width: 4104, height: 2736 }
Show files where this class is defined (1 file)
Register or log in to add new notes.