ActiveStorage::Variation
Constructors
Instance methods
format
transformations.fetch(:format, :png), validated through Marcel
(the gem: Marcel::Magic.by_extension(format).nil? → ArgumentError).
Runs the transformations against raw image bytes and returns the
encoded result in #format. The gem hands a File to the transformer
(transformer.transform(file, format:)); the port stages the bytes
in a temp file and reads the transformed output back.
transformations
Source