LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ppmmake

Create solid color PPM images

TLDR

Create solid color image
$ ppmmake [color] [width] [height] > [output.ppm]
copy
Create red image
$ ppmmake red 100 100 > [red.ppm]
copy
Create using RGB values
$ ppmmake "rgb:ff/00/00" 200 200 > [output.ppm]
copy

SYNOPSIS

ppmmake [-maxval val] color width height

DESCRIPTION

ppmmake creates a PPM image of the specified dimensions filled with a single solid color. Colors can be specified by name (red, blue, white), hex notation (#rrggbb), or RGB triplet format (rgb:rr/gg/bb).This is useful for creating background images, test patterns, or blank canvases for compositing with other Netpbm tools. The companion tools pgmmake and pbmmake create grayscale and bitmap images respectively. Part of the Netpbm toolkit.

PARAMETERS

COLOR

Color specification: name (red, blue), hex (#rrggbb), or RGB triplet (rgb:rr/gg/bb).
WIDTH
Image width in pixels.
HEIGHT
Image height in pixels.
-maxval val
Maximum color component value in the output image (default 255).

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

CAVEATS

Output is raw PPM format written to stdout; redirect to a file or pipe to another Netpbm tool. Part of the Netpbm suite.

HISTORY

ppmmake was created as part of Netpbm for solid image generation.

SEE ALSO

ppm(5), pgmmake(1), pbmmake(1), pnmtopng(1)

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