Class: ActiveStorage::HotCell::Client::Transformers::Image::Magick
- Inherits:
-
Transformers::ImageMagick
- Object
- Transformers::ImageMagick
- ActiveStorage::HotCell::Client::Transformers::Image::Magick
- Includes:
- Transforming
- Defined in:
- lib/active_storage/hot_cell/client/transformers/image/magick.rb
Overview
What Rails configures as config.active_storage.variant_processor for an application on ImageMagick.
config.active_storage.variant_processor = ActiveStorage::HotCell::Client::Transformers::Image::Magick
It subclasses Rails' own ImageMagick transformer to keep its transformation allowlist —
supported_image_processing_methods and the argument blocklist — which runs here, in the
application, exactly where Rails runs it today. Only the final step changes: rather than shelling out
to magick locally, the validated transformations cross to the cell.