ppmntsc
Make the RGB colors in a PPM image compatible with NTSC or PAL color systems. tldr-pages
On several platforms
Several platforms
Make the RGB colors in a PPM image compatible with NTSC color systems
ppmntsc path/to/input_file.ppm >path/to/output_file.ppmIdentifyMake the RGB colors in a PPM image compatible with PAL color systems
ppmntsc --pal path/to/input_file.ppm >path/to/output_file.ppmIdentifyPrint the number of illegal pixels in the input image to stderr
ppmntsc --verbose path/to/input_file.ppm >path/to/output_file.ppmIdentifyOutput only legal/illegal/corrected pixels, set other pixels to black
ppmntsc --legalonly path/to/input_file.ppm >path/to/output_file.ppmIdentify