Linux Commands Examples

A great documentation place for Linux commands


convert a Usenix FaceSaver(tm) file into a portable graymap

see also : pgmtofs - pgmnorm - pnmenlarge - pnmscale - pgmtopbm


fstopgm [fsfile]

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


tifftopnm "$file"
*.fs | *.fs.* | *.face | *.face.* )
fstopgm "$file"
*.hips | *.hips.* )
pcxtoppm "$file"
pict )
picttoppm "$file"
fs )
fstopgm "$file"
fs )
fstopgm "$file"
hips )
hipstopgm "$file"
fits )


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 , pgm, pgmnorm , pnmenlarge , pnmscale , pgmtopbm


Copyright (C) 1989 by Jef Poskanzer.

How can this site be more helpful to YOU ?

give  feedback