module Latch::Processor::Vips

Overview

Processor module for libvips-based image transformations. Uses vipsthumbnail for resize operations and vips copy for metadata/format changes without resizing.

struct AvatarProcessor
  include Latch::Processor::Vips

  original resize: "2000x2000>", strip: true
  variant large, resize: "800x800"
  variant thumb, resize: "200x200", crop: true, quality: 85
end

Included Modules

Defined in:

latch/processor/vips.cr

Macros inherited from module Latch::Processor

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