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]
Use script file
$ ppmdraw -scriptfile [commands.txt] [input.ppm] > [output.ppm]

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
sudo dnf install netpbm
sudo pacman -S netpbm
sudo apk add netpbm
sudo zypper install netpbm
brew install netpbm
nix profile install nixpkgs#netpbm

SEE ALSO

ppmlabel(1), pbmtext(1)