LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ppmdraw

Draw shapes and text on PPM images

TLDR

Draw on PPM image with script
$ ppmdraw -script "[line 0 0 100 100]" [input.ppm] > [output.ppm]
copy
Use script file
$ ppmdraw -scriptfile [commands.txt] [input.ppm] > [output.ppm]
copy

SYNOPSIS

ppmdraw [options] [file]

DESCRIPTION

ppmdraw draws shapes and text on PPM images using a scripting language. Supports lines, circles, text, and filled shapes. Part of Netpbm toolkit.

PARAMETERS

-script commands

Drawing commands inline.
-scriptfile file
File containing drawing commands.

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

ppmlabel(1), pbmtext(1)

Copied to clipboard
Kai