HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

ppmntsc — Make the RGB colors in a PPM image compatible with NTSC or PAL color systems. More information: <htt

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandcolorsclirgbppmntscppmmake

Problem

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

Solution

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 --pal {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}


Print the number of illegal pixels in the input image to stderr:
ppmntsc {{[--verb|--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}}

Code Snippets

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 --pal {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}

Print the number of illegal pixels in the input image to `stderr`

ppmntsc {{[--verb|--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}}

Context

tldr-pages: common/ppmntsc

Revisions (0)

No revisions yet.