_ _ ___ | |__ __ _ _______ | |_ / _ \| '_ \ / _` |_ / _ \| __| | (_) | | | | (_| |/ / (_) | |_ \___/|_| |_|\__,_/___\___/ \__|
| ohazot | docs | links | dev | conf | txt |
| es | en |
| mdoc file |
| search |
netpbm —
usage and examples
DESCRIPTION
Netpbm is an image manipulation set packages.
CONVERSION
All packages output to stdin, they need to be redirected to a file or piped to another program as shown in the example.
text to image
asciitopgm HEIGHT WIDTH
ASCIIFILEimage crop
pnmcrop [-white|-black]
IMAGE_FILEenlarge
pamenlarge -scale INT_SCALE
IMAGE_FILEconvert to jpeg
pnmtojpeg IMAGE_FILEEXAMPLE
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
result
TODO
- Expand this document: this document was created after generating the favicon, needs further review and examples.
SEE ALSO
- ArchLinux manpages: netpbm
links
| - Netpbm at SourceForge |