phpman > man > ppmtorgb3(1)

Markdown | JSON | MCP    

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(1)                           General Commands Manual                          ppmtorgb3(1)



NAME
       ppmtorgb3 - separate a portable pixmap into three portable graymaps

SYNOPSIS
       ppmtorgb3 [ppmfile]

DESCRIPTION
       Reads  a  portable  pixmap  as input.  Writes three portable graymaps as output, one each for
       red, green, and blue.

       The output filenames are constructed by taking the input filename, stripping off  any  exten‐
       sion,  and appending ".red", ".grn", and ".blu".  For example, separating lenna.ppm would re‐
       sult in lenna.red, lenna.grn, and lenna.blu.  If the input comes from stdin,  the  names  are
       noname.red, noname.grn, and noname.blu.

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

AUTHOR
       Copyright (C) 1991 by Jef Poskanzer.



                                           10 January 1991                              ppmtorgb3(1)

Generated by phpman local Author: Che Dong Under GNU General Public License
2026-06-15 04:29 @216.73.216.200
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!