.TL Pamfile User Manual .SH 1 pamfile .LP Updated: 11 July 2006; .br Table Of Contents .SH 2 NAME .LP pamfile - describe a Netpbm (PAM or PNM) file .SH 2 SYNOPSIS .LP \fBpamfile\fR [\fB-allimages\fR] [\fB-count\fR] [\fB-comments\fR] [\fIfile\fR ...] .LP Minimum unique abbreviation of option is 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. .SH 2 DESCRIPTION .LP .LP This program is part of Netpbm. .LP \fBpamfile\fR 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. .LP By default, \fBpamfile\fR 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\fR option. .SH 2 OPTIONS .LP .RS .IP "\fB-allimages\fR" This option causes \fBpamfile\fR to describe every image in each input file. Without this option, \fBpamfile\fR describes only the first image in each input file. .LP This option also causes \fBpamfile\fR to read all the images from the input stream, whereas without it, \fBpamfile\fR 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. .LP This option has no effect if you also specify \fB-count\fR. .LP Note that before July 2000, a file could not contain more than one image and many programs ignore all but the first. .LP This option was new in Netpbm 9.5 (July 2000). .IP "\fB-comments\fR" This option causes \fBpamfile\fR to include for each PAM image a report of the comments from the header of the image. .LP For a PBM, PGM, or PPM image, \fBpamfile\fR reports there are no comments, even if there are. .LP This option was new in Netpbm 10.35 (August 2006). .IP "\fB-count\fR" This option causes \fBpamfile\fR to display only a count of how many images are in each input file. .LP As with \fB-allimages\fR, this causes \fBpamfile\fR to read all the images. .LP This option was new with Netpbm 10.31 (December 2005). .RE .SH 2 SEE ALSO .LP \fBpam\fR, \fBppmhist\fR, \fBfile\fR .SH 2 AUTHOR .LP Copyright (C) 1991 by Jef Poskanzer. .br \l'5i' .SH 2 Table Of Contents .LP .IP \(bu SYNOPSIS .IP \(bu DESCRIPTION .IP \(bu OPTIONS .IP \(bu SEE ALSO .IP \(bu AUTHOR .LP