1Anytopnm User Manual(0)                                Anytopnm User Manual(0)
2
3
4

NAME

6       anytopnm - convert an arbitrary type of image file to PBM, PGM, or PPM
7
8

SYNOPSIS

10       anytopnm [file]
11
12

DESCRIPTION

14       This program is part of Netpbm(1).
15
16       anytopnm  converts  the  input  image, which may be in any of about 100
17       graphics formats, to PBM, PGM, or PPM format, depending on that  nature
18       of the input image, and outputs it to Standard Output.
19
20       To  determine  the  format of the input, anytopnm uses the file program
21       (possibly assisted by the magic numbers  file  fragment  included  with
22       Netpbm).  If  that  fails  (very few image formats have magic numbers),
23       anytopnm looks at the filename  extension.   If  that  fails,  anytopnm
24       punts.
25
26       The type of the output file depends on the input image.
27
28       anytopnm  uses  the converters for particular graphics formats that are
29       in the Netpbm package, so it can't convert any format that you couldn't
30       convert  with  some  other  Netpbm  program.  What anytopnm adds is the
31       ability to recognize the format and choose the appropriate Netpbm  pro‐
32       gram to convert it.  For example, if you invoke anytopnm on a GIF file,
33       anytopnm will recognize that it is a GIF file  and  therefore  giftopnm
34       knows how to convert it to PNM, so anytopnm invokes giftopnm.
35
36       anytopnm cannot recognize every possible input format, so you may still
37       be able to convert an image with a specific Netpbm  program  when  any‐
38       topnm fails to convert it.
39
40       If  file  indicates  that the input file is compressed (either via Unix
41       compress, gzip, or bzip compression), anytopnm uncompresses it and pro‐
42       ceeds as above with the uncompressed result.
43
44       If  file  indicates that the input file is encoded by uuencode or btoa,
45       anytopnm decodes it and proceeds as above with the decoded result.
46
47       If file is - or not given,  anytopnm  takes  its  input  from  Standard
48       Input.
49
50

SEE ALSO

52       pamfile(1), pnm(1), file man page
53
54

AUTHOR

56       Copyright (C) 1991 by Jef Poskanzer.
57
58
59
60netpbm documentation           05 September 2006       Anytopnm User Manual(0)
Impressum