class

Greitspitz::Transformer

Inherits Reference < Object

Applies a list of operations to transform a source image. Allows a format parameter to force an output format other than JPEG.

Constants

FORMATS = {"avif" => ".avif", "jpeg" => ".jpg", "png" => ".png"}

We only support a subset of available formats in VIPS to reduce the attack surface on the server and only serve image formats that make sense in the browser.

Constructors

new(input : IO, instructions : Instructions)
Source

Class methods

parse_dimensions(value)
Source

Instance methods

format
Source
quality
Source
write(output : IO)
Source