---
name: "ppmtorgb3"
section: "1"
platform: "linux"
package: "netpbm"
version: "10.86.51-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ppmtorgb3"
---

# ppmtorgb3(1)

separate a PPM image into three PGMs

## 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 extension, 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 **noname.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 \
  Common Options ⟨index.html#commonoptions⟩ .)

## SEE ALSO

[**rgb3toppm**(1)](/rgb3toppm/1.md) ,  [**pamchannel**(1)](/pamchannel/1.md) ,  [**ppmtopgm**(1)](/ppmtopgm/1.md) ,  [**pgmtoppm**(1)](/pgmtoppm/1.md) ,  **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**
