pub enum Op {
Resize {
width: u32,
height: u32,
bang: bool,
},
Blur {
radius: u32,
sigma: f32,
},
Edge {
radius: u32,
},
Colors {
count: u32,
dither: Dither,
},
Format(String),
Quality(u32),
Strip,
}Expand description
One convert operation.
Operations apply in source order — same as imagemagick convert,
even though we don’t yet support IM’s stack-reset semantics.
Variants§
Resize
-resize WxH[!]. bang = true means the ! was present:
force exact dimensions without preserving aspect ratio.
Blur
-blur RxS. Sigma defaults to radius / 2.0 when the xS
portion is omitted (matches IM’s convention).
Edge
-edge R. Radius ignored by the current Sobel impl but parsed
for forward-compatibility.
Colors
-colors N paired with an optional -dither preceding it.
When present, the output is paletted via
[oxideav_pixfmt] before encoding.
Format(String)
-format FMT — override the container/codec decision
otherwise derived from the output extension.
Quality(u32)
-quality N — forwarded to the sink codec (e.g. JPEG quality,
WebP quality). Silently dropped by codecs that don’t honour it.
Strip
-strip — request that metadata (EXIF, XMP, ID3, etc.) be
dropped on write.