pgm is PGM(Portable graymap) image encoder/decorder module.
PGM example
P2 # Shows the word "FEEP" (example from Netpbm man page on PGM) 24 7 15 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 3 3 3 0 0 7 7 7 7 0 0 11 11 11 11 0 0 15 15 15 15 0 0 3 0 0 0 0 0 7 0 0 0 0 0 11 0 0 0 0 0 15 0 0 15 0 0 3 3 3 0 0 0 7 7 7 0 0 0 11 11 11 0 0 0 15 15 15 15 0 0 3 0 0 0 0 0 7 0 0 0 0 0 11 0 0 0 0 0 15 0 0 0 0 0 3 0 0 0 0 0 7 7 7 7 0 0 11 11 11 11 0 0 15 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
See also:
Procs
proc encode(data: seq[seq[uint8]]): PGM {...}{.raises: [], tags: [].}
proc format(self: PGM): string {...}{.raises: [], tags: [].}
proc decode(s: string): PGM {...}{.raises: [OverflowError, ValueError], tags: [].}
proc decode(f: File): PGM {...}{.raises: [OverflowError, ValueError, IOError], tags: [ReadIOEffect].}
proc `$`(self: PGM): string {...}{.raises: [], tags: [].}