class Transformer
Ruby on Rails edge
Since v6.0.6.1Active Storage Transformers Transformer
A Transformer applies a set of transformations to an image.
The following concrete subclasses are included in Active Storage:
-
ActiveStorage::Transformers::ImageProcessingTransformer: backed by ImageProcessing, a common interface for MiniMagick and ruby-vips
An application can set config.active_storage.variant_processor to a class. The class must implement the interface defined by Transformer. Active Storage then uses it for variant processing.
Inherits from
Attributes
Methods (defined here)
Private methods (1)
Show private methods Implementation detail — not part of the public API.
- # process
Methods (inherited)
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