Expand description
Image-file encodings the CLI reads and writes: PNG, netpbm (PPM/PAM), raw.
The codec itself only speaks raw RGBA/ARGB/BGRA, so this layer is what makes
the tools accept .png inputs and emit .png outputs.
Modules§
- png
- PNG input/output via the
pngcrate, normalized to RGBA8. - ppm
- Netpbm binary PPM (
P6, RGB) and PAM (P7, RGBA) I/O — dependency-free, forcwebpPPM/PAM inputs anddwebp -ppm/-pamoutputs. - raw
- Raw row-major pixel I/O (the codec’s native currency).
Enums§
- Input
Format - An image encoding the CLI can read as encoder input.
- Output
Format - An image encoding the CLI can write as decoder output.
Functions§
- read_
image - Decode
bytesin the givenformatinto anImage. - to_
rgba8 - Return an image’s pixels as RGBA8, reordering from its stored layout.
- write_
image - Encode an
Imageinto the given outputformat, returning file bytes.