[vox-tech] convert PNM image to PBM using pbmtools?
nbs
vox-tech@lists.lugod.org
Mon, 17 Jun 2002 23:28:04 -0700
On Mon, Jun 17, 2002 at 05:22:13PM -0700, Henry House wrote:
> Does anyone know how to convert a PNM (portable anymap) image into a PBM
> (portable bitmap) on the command line? The closest that I can come is to use
> pbmdepth to convert to a 1-bit deep image, but the result is a PGM (portable
> graymap), not a PBM. Any ideas?
pnmtopgm foo.pnm | pgmtopbm > foo.pbm
Useful for making ASCII art:
djpeg foo.jpg | pnmscale .XYZ | pnmtopgm | pgmtopbm | pbmtoascii > foo.txt
:)
-bill!