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)
SourceClass methods
parse_dimensions(value)
SourceInstance methods
format
Sourcequality
Sourcewrite(output : IO)
Source