class ImageAnalyzer
Ruby on Rails 7.2.3
Since v5.2.8.1Active 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 }
Inherits from
Namespace
Classes
Methods (defined here)
Used by
Subclasses (2)
Methods (inherited)
From ActiveStorage::Analyzer (4)
- # metadata
- self. accept?
- self. analyze_later?
- self. new
From Object (17)
- # acts_like?
- # blank?
- # deep_dup
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # presence
- # presence_in
- # present?
- # to_param
- # to_query
- # try
- # try!
- # with
- # with_options
From ActiveSupport::NumericWithFormat (2)
- # to_formatted_s
- # to_fs