LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

rgb3toppm

Combine RGB component files into PPM image

TLDR

Combine RGB components into PPM
$ rgb3toppm [red.pgm] [green.pgm] [blue.pgm] > [output.ppm]
copy

SYNOPSIS

rgb3toppm redfile greenfile bluefile

DESCRIPTION

rgb3toppm combines three separate PGM grayscale files (red, green, blue channels) into a single PPM color image. All three input files must have the same dimensions. Output is written to standard output. Part of Netpbm toolkit.

PARAMETERS

redfile

PGM file for red channel.
greenfile
PGM file for green channel.
bluefile
PGM file for blue channel.

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

SEE ALSO

Copied to clipboard
Kai