module Latch::Processor::Magick

Overview

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

Included Modules

Defined in:

latch/processor/magick.cr

Macros inherited from module Latch::Processor

original(**options) original, process(&block) process, variant(name, **options) variant