zyn.ImageVariant#
/// An image transformation, normalized before hashing and queueing.
pub const Recipe = struct {
pub const Size = struct { width: u32, height: u32 };
pub const Resize = union(enum) { contain: Size, cover: Size };
pub const Format = enum { jpeg, png, webp };
resize: ?Resize = null,
format: Format,
/// JPEG and WebP quality; null selects 80. PNG does not accept this option.
quality: ?u8 = null,
upscale: bool = false,
background: [3]u8 = .{ 255, 255, 255 },
};