# man > ppmtorgb3(1)

> **TLDR:** 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}}`

*Source: tldr-pages*

---

_Ppmtorgb3_ _User_ [_Manual_(1)](https://www.chedong.com/phpMan.php/man/Manual/1/markdown)               General Commands Manual              _Ppmtorgb3_ _User_ [_Manual_(1)](https://www.chedong.com/phpMan.php/man/Manual/1/markdown)

## NAME
       ppmtorgb3 - separate a PPM image into three PGMs


## SYNOPSIS
### ppmtorgb3

       [_ppmfile_]


## DESCRIPTION
       This program is part of [**Netpbm**(1)](https://www.chedong.com/phpMan.php/man/Netpbm/1/markdown).

       **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)](https://www.chedong.com/phpMan.php/man/rgb3toppm/1/markdown), [**pamchannel**(1)](https://www.chedong.com/phpMan.php/man/pamchannel/1/markdown), [**ppmtopgm**(1)](https://www.chedong.com/phpMan.php/man/ppmtopgm/1/markdown), [**pgmtoppm**(1)](https://www.chedong.com/phpMan.php/man/pgmtoppm/1/markdown), [**ppm**(1)](https://www.chedong.com/phpMan.php/man/ppm/1/markdown), [**pgm**(1)](https://www.chedong.com/phpMan.php/man/pgm/1/markdown)


## 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)](https://www.chedong.com/phpMan.php/man/Manual/1/markdown)
