man > ppmtorgb3(1)

TLDR: ppmtorgb3 (tldr-pages)

Separate the color components of a PPM file into three separate PGM files.

  • Separate the color components of a PPM file, saving the outputs to `file.red`, `file.grn` and `file.blu`
    ppmtorgb3 {{path/to/file.ppm}}
Ppmtorgb3 User Manual(1)               General Commands Manual              Ppmtorgb3 User Manual(1)

NAME
       ppmtorgb3 - separate a PPM image into three PGMs


SYNOPSIS
       ppmtorgb3

       [ppmfile]


DESCRIPTION
       This program is part of Netpbm(1).

       ppmtorgb3 reads a PPM image as input and writes three PGM images as output, one each for red,
       green, and blue.

       ppmtorgb3 constructs the output filenames by taking the input filename, stripping off any ex‐
       tension,  and  appending .red, .grn, .blu.  For example, separating lenna.ppm would result in
       lenna.red, lenna.grn, and lenna.blu.  If the input comes  from  stdin,  the  names  are  non‐
       ame.red, noname.grn, and noname.blu.


OPTIONS
       There  are  no command line options defined specifically for ppmtorgb3, but it recognizes the
       options common to all programs based on libnetpbm (See ]8;;index.html#commonoptions\ Common Options]8;;\ .)


SEE ALSO
       rgb3toppm(1), pamchannel(1), ppmtopgm(1), pgmtoppm(1), ppm(1), pgm(1)


AUTHOR
       Copyright (C) 1991 by Jef Poskanzer.

DOCUMENT SOURCE
       This manual page was generated by the Netpbm tool 'makeman' from  HTML  source.   The  master
       documentation is at

              http://netpbm.sourceforge.net/doc/ppmtorgb3.html

netpbm documentation                       10 January 1991                  Ppmtorgb3 User Manual(1)

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-03 18:55 @216.73.216.23
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!