1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 22:22:07 +02:00
tldr/pages/common/ppmntsc.md
Antti Savolainen e1d44b5166 batch3
2025-03-28 18:12:09 +02:00

803 B

ppmntsc

Make the RGB colors in a PPM image compatible with NTSC or PAL color systems. More information: https://netpbm.sourceforge.net/doc/ppmntsc.html.

  • Make the RGB colors in a PPM image compatible with NTSC color systems:

ppmntsc {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}

  • Make the RGB colors in a PPM image compatible with PAL color systems:

ppmntsc {{[--p|--pal]}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}

  • Print the number of illegal pixels in the input image to stderr:

ppmntsc {{[--v|--verbose]}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}

  • Output only legal/illegal/corrected pixels, set other pixels to black:

ppmntsc --{{legalonly|illegalonly|correctedonly}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}