summary refs log tree commit diff
path: root/fstopgm.html
blob: a6e68cc6b6858d48adaa07e9c96e98a8b2ab62af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><TITLE>Fstopgm User Manual</TITLE></HEAD>
<BODY>
<H1>fstopgm</H1>
Updated: 06 April 89
<BR>
<A HREF="#index">Table Of Contents</A>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
fstopgm - convert a Usenix FaceSaver(tm) file into a PGM image


<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>

<B>fstopgm</B>
[<I>fsfile</I>]

<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>

<p>This program is part of <a href="index.html">Netpbm</a>.

<p><b>fstopgm</b> reads a Usenix FaceSaver(tm) file as input and
produces a PGM image as output.

<P>FaceSaver(tm) files sometimes have rectangular pixels.  While
<B>fstopgm</B> won't re-scale them into square pixels for you, it will
give you the precise <B>pamscale</B> command that will do the job.
Because of this, reading a FaceSaver(tm) image is a two-step process.
First you do:

<PRE>
  fstopgm &gt; /dev/null
</PRE>

This will tell you whether you need to use <B>pamscale.</B>

Then use one of the following pipelines:
<PRE>
  fstopgm | pgmnorm
  fstopgm | pamscale -whatever | pgmnorm
</PRE>

To go to PBM, you want something more like one of these:
<PRE>
  fstopgm | pamenlarge 3 | pgmnorm | pamditherbw
  fstopgm | pamenlarge 3 | pamscale &lt;whatever&gt; | pgmnorm | pamditherbw
</PRE>

You want to enlarge when going to a bitmap because otherwise you lose
information; but enlarging by more than 3 does not look good.

<P>FaceSaver is a registered trademark of Metron Computerware Ltd. of
Oakland, CA.


<A NAME="lbAE">&nbsp;</A>
<H2>SEE ALSO</H2>

<A HREF="pgmtofs.html">pgmtofs</A>,
<A HREF="pgm.html">pgm</A>,
<A HREF="pgmnorm.html">pgmnorm</A>,
<A HREF="pamenlarge.html">pamenlarge</A>,
<A HREF="pamscale.html">pamscale</A>,
<A HREF="pamditherbw.html">pamditherbw</A>
<A NAME="lbAF">&nbsp;</A>


<H2>AUTHOR</H2>

Copyright (C) 1989 by Jef Poskanzer.

<HR>
<A NAME="index">&nbsp;</A>
<H2>Table Of Contents</H2>
<UL>
<LI><A HREF="#lbAB">NAME</A>
<LI><A HREF="#lbAC">SYNOPSIS</A>
<LI><A HREF="#lbAD">DESCRIPTION</A>
<LI><A HREF="#lbAE">SEE ALSO</A>
<LI><A HREF="#lbAF">AUTHOR</A>
</UL>
</BODY>
</HTML>