\ .\" This man page was generated by the Netpbm tool 'makeman' from HTML source. .\" Do not hand-hack it! If you have bug fixes or improvements, please find .\" the corresponding HTML page on the Netpbm website, generate a patch .\" against that, and send it to the Netpbm maintainer. .TH "Pamfile User Manual" 0 "11 July 2006;" "netpbm documentation" .SH NAME pamfile - describe a Netpbm (PAM or PNM) file .UN synopsis .SH SYNOPSIS \fBpamfile\fP [\fB-allimages\fP] [\fB-count\fP] [\fB-comments\fP] [\fIfile\fP ...] .PP 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. .UN description .SH DESCRIPTION .PP This program is part of .BR "Netpbm" (1)\c \&. .PP \fBpamfile\fP 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. .PP By default, \fBpamfile\fP 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 \fB-allimages\fP option. .UN options .SH OPTIONS .TP \fB-allimages\fP This option causes \fBpamfile\fP to describe every image in each input file. Without this option, \fBpamfile\fP describes only the first image in each input file. .sp This option also causes \fBpamfile\fP to read all the images from the input stream, whereas without it, \fBpamfile\fP 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. .sp This option has no effect if you also specify \fB-count\fP. .sp Note that before July 2000, a file could not contain more than one image and many programs ignore all but the first. .sp This option was new in Netpbm 9.5 (July 2000). .TP \fB-comments\fP This option causes \fBpamfile\fP to include for each PAM image a report of the comments from the header of the image. .sp For a PBM, PGM, or PPM image, \fBpamfile\fP reports there are no comments, even if there are. .sp This option was new in Netpbm 10.35 (August 2006). .TP \fB-count\fP This option causes \fBpamfile\fP to display only a count of how many images are in each input file. .sp As with \fB-allimages\fP, this causes \fBpamfile\fP to read all the images. .sp This option was new with Netpbm 10.31 (December 2005). .UN seealso .SH SEE ALSO .BR "pam" (5)\c \&, .BR "ppmhist" (1)\c \&, \fBfile\fP .UN author .SH AUTHOR Copyright (C) 1991 by Jef Poskanzer. .SH DOCUMENT SOURCE This manual page was generated by the Netpbm tool 'makeman' from HTML source. The master documentation is at .IP .B http://netpbm.sourceforge.net/doc/pamfile.html .PP