module

Latch::Processor::Magick

Inherits Latch::Processor

Processor module for ImageMagick-based image transformations. Include this module and use the variant macro to define variants. Each option key becomes a -key value pair passed to magick convert.

struct AvatarSizesProcessor
  include Latch::Processor::Magick

  variant large, resize: "2000x2000"
  variant small, resize: "200x200", gravity: "center"
end

Nested types