Blob Blame History Raw
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><TITLE>Pamfile User Manual</TITLE></HEAD>
<BODY>
<H1>pamfile</H1>
Updated: 11 July 2006;
<BR>
<A HREF="#index">Table Of Contents</A>

<H2>NAME</H2>

pamfile - describe a Netpbm (PAM or PNM) file

<H2 id="synopsis">SYNOPSIS</H2>

<B>pamfile</B>

[<B>-allimages</B>]
[<B>-count</B>]
[<B>-comments</B>]

[<I>file</i> ...]

<P>Minimum unique abbreviations of options are acceptable.  You may use
double hyphens instead of single hyphen to denote options.  You may use
white space in place of the equals sign to separate an option name
from its value.

<H2 id="description">DESCRIPTION</H2>

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

<p><B>pamfile</b> reads one or more Netpbm files as input and writes
out short descriptions of the image type, size, etc.  This is partly
for use in shell scripts, so the format is not particularly pretty.

<p>By default, <b>pamfile</b> reads only the header of the input file.
If that file is a pipe, that might cause problems for the process that is
feeding the pipe.  In that case, see the <b>-allimages</b> option.

<H2 id="options">OPTIONS</H2>

<DL COMPACT>
<DT><B>-allimages</B>

<DD>This option causes <b>pamfile</b> to describe every image in each
input file.  Without this option, <B>pamfile</B> describes only the
first image in each input file.

<p>This option also causes <b>pamfile</b> to read all the images from 
the input stream, whereas without it, <b>pamfile</b> reads only the header
of the first one.  If the input stream is from a pipe, the process that is
feeding the pipe might require the entire stream to be consumed.  In
that case, use this option even if the stream contains only one image.

<p>This option has no effect if you also specify <b>-count</b>.

<p>Note that before July 2000, a file could not contain more than one
image and many programs ignore all but the first.

<p>This option was new in Netpbm 9.5 (July 2000).

<dt><b>-comments</b>

<dd>This option causes <b>pamfile</b> to include for each PAM image
a report of the comments from the header of the image.

<p>For a PBM, PGM, or PPM image, <b>pamfile</b> reports there are no
comments, even if there are.

<p>This option was new in Netpbm 10.35 (August 2006).

<dt><b>-count</b>

<dd>This option causes <b>pamfile</b> to display only a count of how many
images are in each input file.

<p>As with <b>-allimages</b>, this causes <b>pamfile</b> to read all the
images.

<p>This option was new with Netpbm 10.31 (December 2005).

</DL>

<H2 id="seealso">SEE ALSO</H2>

<B><A HREF="pam.html">pam</A></B>,
<B><A HREF="ppmhist.html">ppmhist</A></B>,
<B>file</B>

<H2 id="author">AUTHOR</H2>

Copyright (C) 1991 by Jef Poskanzer.

<HR>
<A NAME="index">&nbsp;</A>
<H2>Table Of Contents</H2>
<UL>
<LI><A HREF="#synopsis">SYNOPSIS</A>
<LI><A HREF="#description">DESCRIPTION</A>
<LI><A HREF="#options">OPTIONS</A>
<LI><A HREF="#seealso">SEE ALSO</A>
<LI><A HREF="#author">AUTHOR</A>
</UL>
</BODY>
</HTML>