.TL Anytopnm User Manual .SH 1 anytopnm .LP Updated: 05 September 2006 .br Table Of Contents .SH 2 NAME .LP anytopnm - convert an arbitrary type of image file to PBM, PGM, or PPM .SH 2 SYNOPSIS .LP \fBanytopnm\fR [\fIfile\fR] .SH 2 DESCRIPTION .LP .LP This program is part of Netpbm. .LP \fBanytopnm\fR converts the input image, which may be in any of about 100 graphics formats, to PBM, PGM, or PPM format, depending on that nature of the input image, and outputs it to Standard Output. .LP To determine the format of the input, \fBanytopnm\fR uses the \fBfile\fR program (possibly assisted by the magic numbers file fragment included with Netpbm). If that fails (very few image formats have magic numbers), \fBanytopnm\fR looks at the filename extension. If that fails, \fBanytopnm\fR punts. .LP The type of the output file depends on the input image. .LP \fBanytopnm\fR uses the converters for particular graphics formats that are in the Netpbm package, so it can't convert any format that you couldn't convert with some other Netpbm program. What \fBanytopnm\fR adds is the ability to recognize the format and choose the appropriate Netpbm program to convert it. For example, if you invoke \fBanytopnm\fR on a PNG file, \fBanytopnm\fR will recognize that it is a PNG file and therefore \fBpngtopnm\fR knows how to convert it to PNM, so \fBanytopnm\fR invokes \fBpngtopnm\fR. .LP \fBanytopnm\fR cannot recognize every possible input format, so you may still be able to convert an image with a specific Netpbm program when \fBanytopnm\fR fails to convert it. .LP If \fBfile\fR indicates that the input file is compressed (either via Unix compress, gzip, or bzip compression), \fBanytopnm\fR uncompresses it and proceeds as above with the uncompressed result. .LP If \fBfile\fR indicates that the input file is encoded by uuencode or btoa, \fBanytopnm\fR decodes it and proceeds as above with the decoded result. .LP If \fIfile\fR is \fB-\fR or not given, \fBanytopnm\fR takes its input from Standard Input. .SH 2 SEE ALSO .LP \fBpamfile\fR, \fBpnm\fR, \fBfile\fR man page .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 SEE ALSO .IP \(bu AUTHOR .LP