summaryrefslogtreecommitdiffstats
path: root/upstream/opensuse-tumbleweed/man1/anytopnm.1
blob: 471034863bf9d29064b16cb076bb7730ffdc45d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
\
.\" 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 "Anytopnm User Manual" 0 "15 November 2014" "netpbm documentation"

.SH NAME
anytopnm - convert an arbitrary type of image file to PBM, PGM, or PPM

.UN synopsis
.SH SYNOPSIS

\fBanytopnm\fP [\fIfile\fP]


.UN description
.SH DESCRIPTION
.PP
This program is part of
.BR "Netpbm" (1)\c
\&.
.PP
\fBanytopnm\fP 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.
.PP
To determine the format of the input, \fBanytopnm\fP uses the
\fBfile\fP program (possibly assisted by the magic numbers file
fragment included with Netpbm). If that fails (very few image formats
have magic numbers), \fBanytopnm\fP looks at the filename extension.
If that fails, \fBanytopnm\fP punts.
.PP
The type of the output file depends on the input image.
.PP
\fBanytopnm\fP 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\fP adds is the ability to recognize the format and choose
the appropriate Netpbm program to convert it.  For example, if you
invoke \fBanytopnm\fP on a GIF file, \fBanytopnm\fP will recognize
that it is a GIF file and therefore \fBgiftopnm\fP knows how to
convert it to PNM, so \fBanytopnm\fP invokes \fBgiftopnm\fP.
.PP
\fBanytopnm\fP cannot recognize every possible input format, so you
may still be able to convert an image with a specific Netpbm program when
\fBanytopnm\fP fails to convert it.
.PP
If \fBfile\fP indicates that the input file is compressed (either
via Unix compress, gzip, or bzip compression), \fBanytopnm\fP
uncompresses it and proceeds as above with the uncompressed result.
.PP
If \fBfile\fP indicates that the input file is encoded by uuencode
or btoa, \fBanytopnm\fP decodes it and proceeds as above with the
decoded result.
.PP
If \fIfile\fP is \fB-\fP or not given, \fBanytopnm\fP takes its
input from Standard Input.
.PP
Many image formats are capable of representing multiple images.  In
most cases, \fBanytopnm\fP converts these to multi-image Netpbm images,
but for some formats, \fBanytopnm\fP converts only the first image and
ignores the rest.
.PP
In the case of a multi-image GIF input, \fBanytopnm\fP converts all the
images starting with Netpbm 10.69 (December 2014), but only the first in
earlier releases.


.UN options
.SH OPTIONS
.PP
There are no command line options defined specifically
for \fBanytopnm\fP.

\fBanytopnm\fP does not recognize the options common to all
programs based on libnetpbm (See 
.UR index.html#commonoptions
 Common Options
.UE
\&.)  However, the \fB-version\fP option works.

.UN seealso
.SH SEE ALSO
.BR "pamfile" (1)\c
\&,
.BR "pnm" (5)\c
\&,
\fBfile\fP man page

.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/anytopnm.html
.PP