method
transform
v6.0.0 -
Show latest stable
- Class:
ActiveStorage::Variation
transform(file, format: nil, &block)public
Accepts a File object, performs the transformations against it, and saves the transformed image into a temporary file. If format is specified it will be the format of the result image, otherwise the result image retains the source format.