Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pbmtoascii(1) [minix man page]

pbmtoascii(1)                                                 General Commands Manual                                                pbmtoascii(1)

NAME
pbmtoascii - convert a portable bitmap into ASCII graphics SYNOPSIS
pbmtoascii [-1x2|-2x4] [pbmfile] DESCRIPTION
Reads a portable bitmap as input. Produces a somewhat crude ASCII graphic as output. Note that there is no asciitopbm tool - this transformation is one-way. OPTIONS
The -1x2 and -2x4 flags give you two alternate ways for the bits to get mapped to characters. With 1x2, the default, each character repre- sents a group of 1 bit across by 2 bits down. With -2x4, each character represents 2 bits across by 4 bits down. With the 1x2 mode you can see the individual bits, so it's useful for previewing small bitmaps on a non-graphics terminal. The 2x4 mode lets you display larger bitmaps on a standard 80-column display, but it obscures bit-level details. 2x4 mode is also good for displaying graymaps - "pnmscale -width 158 | pgmnorm | pgmtopbm -thresh" should give good results. SEE ALSO
pbm(5) AUTHOR
Copyright (C) 1988, 1992 by Jef Poskanzer. 20 March 1992 pbmtoascii(1)

Check Out this Related Man Page

fstopgm(1)                                                    General Commands Manual                                                   fstopgm(1)

NAME
fstopgm - convert a Usenix FaceSaver(tm) file into a portable graymap SYNOPSIS
fstopgm [fsfile] DESCRIPTION
Reads a Usenix FaceSaver(tm) file as input. Produces a portable graymap as output. FaceSaver(tm) files sometimes have rectangular pixels. While fstopgm won't re-scale them into square pixels for you, it will give you the precise pnmscale command that will do the job. Because of this, reading a FaceSaver(tm) image is a two-step process. First you do: fstopgm > /dev/null This will tell you whether you need to use pnmscale. Then use one of the following pipelines: fstopgm | pgmnorm fstopgm | pnmscale -whatever | pgmnorm To go to PBM, you want something more like one of these: fstopgm | pnmenlarge 3 | pgmnorm | pgmtopbm fstopgm | pnmenlarge 3 | pnmscale <whatever> | pgmnorm | pgmtopbm You want to enlarge when going to a bitmap because otherwise you lose information; but enlarging by more than 3 does not look good. FaceSaver is a registered trademark of Metron Computerware Ltd. of Oakland, CA. SEE ALSO
pgmtofs(1), pgm(5), pgmnorm(1), pnmenlarge(1), pnmscale(1), pgmtopbm(1) AUTHOR
Copyright (C) 1989 by Jef Poskanzer. 06 April 89 fstopgm(1)
Man Page