.Dd Created:2025-10-13|Updated:2025-10-13| .de ocsi \\$* , .. .de oxr .ocsi .Xr \\$* .. .de oit .It \\$* .. .de obdi .Bl -dash -compact .oit \\$* .. .de obdl .Bd -literal -compact \\$* .. .de onote .Bl -hang -compact .oit \\$* .El .. .de ocomm .Bl -diag -compact .oit \\$* .El .. .de opsy .Pp .Sy - \\$* .. .de obc .Bl -column \\$* .. .de obc2 .obc opt desc .. .de obc3 .obc option arguments description .. .Dt NETPBM oh .Os linux OpenBSD 7.7| .Nm netpbm .Nd usage and examples .Sh DESCRIPTION Netpbm is an image manipulation set packages. .Sh CONVERSION All packages output to stdin, they need to be redirected to a file or piped to another program as shown in the example. .Ss text to image .Dl asciitopgm HEIGHT WIDTH ASCIIFILE .Ss image crop .Dl pnmcrop [-white|-black] IMAGE_FILE .Ss enlarge .Dl pamenlarge -scale INT_SCALE IMAGE_FILE .Ss convert to jpeg .Dl pnmtojpeg IMAGE_FILE .Sh EXAMPLE This is the code used to create the favicon for this site: .Bd -literal -compact (echo "#######" && figlet -f letter O | tr ' o' '##' | sed "s/^/#/;3s/#O###O/#O---O/") | \e asciitopgm 100 100 - | pnmcrop -white | pamenlarge -scale 200 | pnmtojpeg > netpbm_example.jpeg .Ed .Ss result .In /netpbm_example.jpeg .Sh TODO .Bl -dash -compact .It Expand this document: this document was created after generating the favicon, needs further review and examples. .El .Sh SEE ALSO .oxr figlet oh .Xr text_manipulation oh .opsy ArchLinux manpages: .Xr netpbm .El .Ss links .obc2 .It - Lk https://netpbm.sourceforge.net/ Netpbm at SourceForge .El .Sh AUTHORS .An -nosplit .Xr ohazot oh | .Xr about oh | .Lk https://ohazot.com ohazot.com .Aq Mt admin@ohazot.com