LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ppmtorgb3

Split PPM into separate RGB channel files

TLDR

Split a PPM image into three PGM component files
$ ppmtorgb3 [input.ppm]
copy
Read from stdin (produces noname.red/.grn/.blu)
$ cat [input.ppm] | ppmtorgb3
copy

SYNOPSIS

ppmtorgb3 [ppmfile]

DESCRIPTION

ppmtorgb3 reads a PPM (Portable Pixmap) image and writes three PGM (Portable Graymap) images as output: one each for the red, green, and blue channels.Output filenames are derived from the input filename by stripping any extension and appending .red, .grn, and .blu. For example, separating lenna.ppm produces lenna.red, lenna.grn, and lenna.blu. When input comes from stdin, the names default to noname.red, noname.grn, and noname.blu.There are no options specific to ppmtorgb3, but it accepts the common options shared by all programs based on libnetpbm.

INSTALL

sudo apt install netpbm
copy
sudo dnf install netpbm
copy
sudo pacman -S netpbm
copy
sudo apk add netpbm
copy
sudo zypper install netpbm
copy
brew install netpbm
copy
nix profile install nixpkgs#netpbm
copy

HISTORY

Written by Jef Poskanzer in 1991 as part of Netpbm (originally Pbmplus), a classic toolkit of image-processing utilities that uses simple PBM/PGM/PPM formats as intermediate pipelines.

SEE ALSO

rgb3toppm(1), ppmtopgm(1), pgmtoppm(1), ppmtoyuvsplit(1), ppm(5), pgm(5)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid