| ★ wanayoo — archive 1999 http://nodevice.com/sections/ManIndex/man0412.html | Nouvelle recherche | Portail wanayoo |
| Previous Next Man Index | Sections: 0 1 2 3 4 5 6 7 8 N |
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/nullThis will tell you whether you need to use pnmscale. Then use one of the following pipelines:
fstopgm | pgmnorm fstopgm | pnmscale -whatever | pgmnormTo go to PBM, you want something more like one of these:
fstopgm | pnmenlarge 3 | pgmnorm | pgmtopbm fstopgm | pnmenlarge 3 | pnmscale <whatever> | pgmnorm | pgmtopbmYou 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.
| Previous Next Man Index | Sections: 0 1 2 3 4 5 6 7 8 N |