_                    _
  ___ | |__   __ _ _______ | |_
 / _ \| '_ \ / _` |_  / _ \| __|
| (_) | | | | (_| |/ / (_) | |_
 \___/|_| |_|\__,_/___\___/ \__|

netpbmusage and examples

Netpbm is an image manipulation set packages.

back to top

All packages output to stdin, they need to be redirected to a file or piped to another program as shown in the example.

asciitopgm HEIGHT WIDTH ASCIIFILE

pnmcrop [-white|-black] IMAGE_FILE

pamenlarge -scale INT_SCALE IMAGE_FILE

pnmtojpeg IMAGE_FILE

back to top

This is the code used to create the favicon for this site:

(echo "#######" && figlet -f letter O | tr ' o' '##' | sed "s/^/#/;3s/#O###O/#O---O/") | \
asciitopgm 100 100 - | pnmcrop -white | pamenlarge -scale 200 | pnmtojpeg > netpbm_example.jpeg

</netpbm_example.jpeg>

back to top

back to top

figlet , text_manipulation

- ArchLinux manpages: netpbm

- Netpbm at SourceForge

back to top

ohazot | about | ohazot.com <admin@ohazot.com>

linux OpenBSD 7.7| Created:2025-10-13|Updated:2025-10-13|