Skip to main content

Module ppm

Module ppm 

Source
Expand description

Netpbm binary PPM (P6, RGB) and PAM (P7, RGBA) I/O — dependency-free, for cwebp PPM/PAM inputs and dwebp -ppm/-pam outputs.

Functions§

read
Decode a binary PPM (P6) or PAM (P7) image into an RGBA8 Image.
write_pam
Encode an Image as a binary PAM (P7, RGBA).
write_ppm
Encode an Image as a binary PPM (P6, RGB; alpha dropped).