Fstopgm User Manual(0) Fstopgm User Manual(0)
fstopgm - convert a Usenix FaceSaver(tm) file into a PGM image
This program is part of Netpbm(1).
fstopgm reads a Usenix FaceSaver(tm) file as input and produces a PGM
image 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 pamscale command that will do the job. Because of this, read-
ing a FaceSaver(tm) image is a two-step process. First you do:
fstopgm > /dev/null
This will tell you whether you need to use pamscale.
Then use one of the following pipelines:
fstopgm | pgmnorm
fstopgm | pamscale -whatever | pgmnorm
To go to PBM, you want something more like one of these:
fstopgm | pnmenlarge 3 | pgmnorm | pamditherbw
fstopgm | pnmenlarge 3 | pamscale <whatever> | pgmnorm | pamditherbw
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 Oak-
pgmtofs(1), pgm(1), pgmnorm(1), pnmenlarge(1), pamscale(1),
Copyright (C) 1989 by Jef Poskanzer.
netpbm documentation 06 April 89 Fstopgm User Manual(0)
Man(1) output converted with