pub fn encode(x: impl Encode) -> Vec<u8>
Encodes an image to one of the pgm or ppm portable anymap formats.
pgm
ppm
Please note that this will not produce a pam, use [PAM] for that.
pam
PAM