image_compressor_pack 1.0.0.1-universal-darwin-16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +22 -0
- data/lib/.paths.yml +12 -0
- data/lib/image_compressor_pack/dynamically_linked_recipes.yml +102 -0
- data/lib/image_compressor_pack/recipes.rb +42 -0
- data/lib/image_compressor_pack/statically_linked_recipes.yml +109 -0
- data/lib/image_compressor_pack/version.rb +3 -0
- data/lib/image_compressor_pack.rb +24 -0
- data/ports/advancecomp-1.22-x86_64-apple-darwin16.1.0.installed +0 -0
- data/ports/gifsicle-1.88-x86_64-apple-darwin16.1.0.installed +0 -0
- data/ports/jhead-3.0-x86_64-apple-darwin16.1.0.installed +0 -0
- data/ports/jpeg-archive-2.1.1-x86_64-apple-darwin16.1.0.installed +0 -0
- data/ports/jpegoptim-1.4.4-x86_64-apple-darwin16.1.0.installed +0 -0
- data/ports/lcms2-2.8-x86_64-apple-darwin16.1.0.installed +0 -0
- data/ports/libpng-1.6.26-x86_64-apple-darwin16.1.0.installed +0 -0
- data/ports/mozjpeg-3.1-x86_64-apple-darwin16.1.0.installed +0 -0
- data/ports/nasm-2.12.02-x86_64-apple-darwin16.1.0.installed +0 -0
- data/ports/optipng-0.7.6-x86_64-apple-darwin16.1.0.installed +0 -0
- data/ports/pngcrush-1.8.10-x86_64-apple-darwin16.1.0.installed +0 -0
- data/ports/pngquant-2.8.0-x86_64-apple-darwin16.1.0.installed +0 -0
- data/ports/x86_64-apple-darwin16.1.0/advancecomp/1.22/bin/advdef +0 -0
- data/ports/x86_64-apple-darwin16.1.0/advancecomp/1.22/bin/advmng +0 -0
- data/ports/x86_64-apple-darwin16.1.0/advancecomp/1.22/bin/advpng +0 -0
- data/ports/x86_64-apple-darwin16.1.0/advancecomp/1.22/bin/advzip +0 -0
- data/ports/x86_64-apple-darwin16.1.0/advancecomp/1.22/share/man/man1/advdef.1 +83 -0
- data/ports/x86_64-apple-darwin16.1.0/advancecomp/1.22/share/man/man1/advmng.1 +197 -0
- data/ports/x86_64-apple-darwin16.1.0/advancecomp/1.22/share/man/man1/advpng.1 +93 -0
- data/ports/x86_64-apple-darwin16.1.0/advancecomp/1.22/share/man/man1/advzip.1 +116 -0
- data/ports/x86_64-apple-darwin16.1.0/gifsicle/1.88/bin/gifsicle +0 -0
- data/ports/x86_64-apple-darwin16.1.0/gifsicle/1.88/share/man/man1/gifsicle.1 +1318 -0
- data/ports/x86_64-apple-darwin16.1.0/jhead/3.0/bin/jhead +0 -0
- data/ports/x86_64-apple-darwin16.1.0/jpeg-archive/2.1.1/bin/jpeg-archive +40 -0
- data/ports/x86_64-apple-darwin16.1.0/jpeg-archive/2.1.1/bin/jpeg-compare +0 -0
- data/ports/x86_64-apple-darwin16.1.0/jpeg-archive/2.1.1/bin/jpeg-hash +0 -0
- data/ports/x86_64-apple-darwin16.1.0/jpeg-archive/2.1.1/bin/jpeg-recompress +0 -0
- data/ports/x86_64-apple-darwin16.1.0/jpegoptim/1.4.4/bin/jpegoptim +0 -0
- data/ports/x86_64-apple-darwin16.1.0/jpegoptim/1.4.4/share/man/man1/jpegoptim.1 +186 -0
- data/ports/x86_64-apple-darwin16.1.0/lcms2/2.8/bin/linkicc +0 -0
- data/ports/x86_64-apple-darwin16.1.0/lcms2/2.8/bin/psicc +0 -0
- data/ports/x86_64-apple-darwin16.1.0/lcms2/2.8/bin/transicc +0 -0
- data/ports/x86_64-apple-darwin16.1.0/lcms2/2.8/include/lcms2.h +1903 -0
- data/ports/x86_64-apple-darwin16.1.0/lcms2/2.8/include/lcms2_plugin.h +665 -0
- data/ports/x86_64-apple-darwin16.1.0/lcms2/2.8/lib/liblcms2.a +0 -0
- data/ports/x86_64-apple-darwin16.1.0/lcms2/2.8/lib/liblcms2.la +41 -0
- data/ports/x86_64-apple-darwin16.1.0/lcms2/2.8/lib/pkgconfig/lcms2.pc +11 -0
- data/ports/x86_64-apple-darwin16.1.0/lcms2/2.8/share/man/man1/jpgicc.1 +122 -0
- data/ports/x86_64-apple-darwin16.1.0/lcms2/2.8/share/man/man1/tificc.1 +117 -0
- data/ports/x86_64-apple-darwin16.1.0/libpng/1.6.26/include/libpng16/png.h +3266 -0
- data/ports/x86_64-apple-darwin16.1.0/libpng/1.6.26/include/libpng16/pngconf.h +622 -0
- data/ports/x86_64-apple-darwin16.1.0/libpng/1.6.26/include/libpng16/pnglibconf.h +213 -0
- data/ports/x86_64-apple-darwin16.1.0/libpng/1.6.26/include/png.h +3266 -0
- data/ports/x86_64-apple-darwin16.1.0/libpng/1.6.26/include/pngconf.h +622 -0
- data/ports/x86_64-apple-darwin16.1.0/libpng/1.6.26/include/pnglibconf.h +213 -0
- data/ports/x86_64-apple-darwin16.1.0/libpng/1.6.26/lib/libpng.a +0 -0
- data/ports/x86_64-apple-darwin16.1.0/libpng/1.6.26/lib/libpng.la +41 -0
- data/ports/x86_64-apple-darwin16.1.0/libpng/1.6.26/lib/libpng16.a +0 -0
- data/ports/x86_64-apple-darwin16.1.0/libpng/1.6.26/lib/libpng16.la +41 -0
- data/ports/x86_64-apple-darwin16.1.0/libpng/1.6.26/lib/pkgconfig/libpng16.pc +11 -0
- data/ports/x86_64-apple-darwin16.1.0/libpng/1.6.26/share/man/man3/libpng.3 +6179 -0
- data/ports/x86_64-apple-darwin16.1.0/libpng/1.6.26/share/man/man3/libpngpf.3 +18 -0
- data/ports/x86_64-apple-darwin16.1.0/libpng/1.6.26/share/man/man5/png.5 +74 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/bin/cjpeg +0 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/bin/djpeg +0 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/bin/jpegtran +0 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/bin/rdjpgcom +0 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/bin/tjbench +0 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/bin/wrjpgcom +0 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/include/jconfig.h +71 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/include/jerror.h +320 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/include/jmorecfg.h +390 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/include/jpeglib.h +1185 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/include/turbojpeg.h +1538 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/lib/libjpeg.a +0 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/lib/libjpeg.la +41 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/lib/libturbojpeg.a +0 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/lib/libturbojpeg.la +41 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/share/doc/README +281 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/share/doc/README-mozilla.txt +194 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/share/doc/README-turbo.txt +363 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/share/doc/example.c +433 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/share/doc/libjpeg.txt +3015 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/share/doc/structure.txt +906 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/share/doc/usage.txt +649 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/share/doc/wizard.txt +211 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/share/man/man1/cjpeg.1 +352 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/share/man/man1/djpeg.1 +278 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/share/man/man1/jpegtran.1 +269 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/share/man/man1/rdjpgcom.1 +63 -0
- data/ports/x86_64-apple-darwin16.1.0/mozjpeg/3.1/share/man/man1/wrjpgcom.1 +103 -0
- data/ports/x86_64-apple-darwin16.1.0/nasm/2.12.02/bin/nasm +0 -0
- data/ports/x86_64-apple-darwin16.1.0/nasm/2.12.02/bin/ndisasm +0 -0
- data/ports/x86_64-apple-darwin16.1.0/nasm/2.12.02/share/man/man1/nasm.1 +429 -0
- data/ports/x86_64-apple-darwin16.1.0/nasm/2.12.02/share/man/man1/ndisasm.1 +120 -0
- data/ports/x86_64-apple-darwin16.1.0/optipng/0.7.6/bin/optipng +0 -0
- data/ports/x86_64-apple-darwin16.1.0/optipng/0.7.6/man/man1/optipng.1 +343 -0
- data/ports/x86_64-apple-darwin16.1.0/pngcrush/1.8.10/bin/pngcrush +0 -0
- data/ports/x86_64-apple-darwin16.1.0/pngquant/2.8.0/bin/pngquant +0 -0
- data/ports/x86_64-apple-darwin16.1.0/pngquant/2.8.0/share/man/man1/pngquant.1 +127 -0
- data/ports/x86_64-apple-darwin16.1.0/zlib/1.2.8/include/zconf.h +511 -0
- data/ports/x86_64-apple-darwin16.1.0/zlib/1.2.8/include/zlib.h +1768 -0
- data/ports/x86_64-apple-darwin16.1.0/zlib/1.2.8/lib/libz.a +0 -0
- data/ports/x86_64-apple-darwin16.1.0/zlib/1.2.8/lib/pkgconfig/zlib.pc +13 -0
- data/ports/x86_64-apple-darwin16.1.0/zlib/1.2.8/share/man/man3/zlib.3 +151 -0
- data/ports/zlib-1.2.8-x86_64-apple-darwin16.1.0.installed +0 -0
- metadata +219 -0
@@ -0,0 +1,343 @@
|
|
1
|
+
.TH OPTIPNG 1 "2016-Apr-03" "OptiPNG version 0.7.6"
|
2
|
+
|
3
|
+
.SH NAME
|
4
|
+
.B OptiPNG
|
5
|
+
\- Optimize Portable Network Graphics files
|
6
|
+
|
7
|
+
.SH SYNOPSIS
|
8
|
+
.B optipng
|
9
|
+
[\fB\-?\fP | \fB\-h\fP | \fB\-help\fP]
|
10
|
+
.br
|
11
|
+
.B optipng
|
12
|
+
[\fIoptions...\fP] \fIfiles...\fP
|
13
|
+
|
14
|
+
.SH DESCRIPTION
|
15
|
+
The
|
16
|
+
.B OptiPNG
|
17
|
+
program shall attempt to \fIoptimize\fP PNG files, i.e. reduce their size to
|
18
|
+
a minimum, without losing semantic information. In addition, this program shall
|
19
|
+
perform a suite of auxiliary functions like integrity checks, metadata recovery
|
20
|
+
and pixmap-to-PNG conversion.
|
21
|
+
.P
|
22
|
+
The optimization attempts are not guaranteed to succeed. Valid PNG files that
|
23
|
+
cannot be optimized by this program are normally left intact; their size will
|
24
|
+
not grow. The user may request to override this default behavior.
|
25
|
+
|
26
|
+
.SH FILES
|
27
|
+
The input files are raster image files encoded either in PNG format (the native
|
28
|
+
format), or in an external format. The currently supported external formats are
|
29
|
+
GIF, BMP, PNM and TIFF.
|
30
|
+
.P
|
31
|
+
.B OptiPNG
|
32
|
+
processes each image file given in the command line as follows:
|
33
|
+
.P
|
34
|
+
\- If the image is in PNG format:
|
35
|
+
.IP
|
36
|
+
Attempts to optimize the given file in-place. If optimization is successful, or
|
37
|
+
if the option \fB\-force\fP is enabled, replaces the original file with its
|
38
|
+
optimized version. The original file is backed up if the option \fB\-keep\fP
|
39
|
+
is enabled.
|
40
|
+
.P
|
41
|
+
\- If the image is in an external format:
|
42
|
+
.IP
|
43
|
+
Creates an optimized PNG version of the given file. The output file name is
|
44
|
+
composed from the original file name and the \fC.png\fP extension.
|
45
|
+
.P
|
46
|
+
Existing files are \fInot\fP overwritten, unless the option \fB\-clobber\fP is
|
47
|
+
enabled.
|
48
|
+
|
49
|
+
.SH OPTIONS
|
50
|
+
.SS "General options"
|
51
|
+
.TP
|
52
|
+
\fB\-?\fP, \fB\-h\fP, \fB\-help\fP
|
53
|
+
Show a complete summary of options.
|
54
|
+
.TP
|
55
|
+
\fB\-backup\fP, \fB\-keep\fP
|
56
|
+
Keep a backup of the modified files.
|
57
|
+
.TP
|
58
|
+
\fB\-clobber\fP
|
59
|
+
Overwrite the existing output and backup files.
|
60
|
+
.br
|
61
|
+
Under this option, if the option \fB\-backup\fP is not enabled, the old backups
|
62
|
+
of the overwritten files are deleted.
|
63
|
+
.TP
|
64
|
+
\fB\-dir\fP \fIdirectory\fP
|
65
|
+
Write the output files to \fIdirectory\fP.
|
66
|
+
.TP
|
67
|
+
\fB\-fix\fP
|
68
|
+
Enable error recovery. This option has no effect on valid input files.
|
69
|
+
.br
|
70
|
+
The program will spend a reasonable amount of effort to recover as much data as
|
71
|
+
possible, without increasing the output file size, but the success cannot be
|
72
|
+
generally guaranteed. The program may even increase the file size, e.g., by
|
73
|
+
reconstructing missing critical data. Under this option, integrity shall take
|
74
|
+
precedence over file size.
|
75
|
+
.br
|
76
|
+
When this option is not used, the invalid input files are left unprocessed.
|
77
|
+
.TP
|
78
|
+
\fB\-force\fP
|
79
|
+
Enforce writing of a new output file.
|
80
|
+
.br
|
81
|
+
This option overrides the program's decision not to write such file, e.g. when
|
82
|
+
the PNG input is digitally signed (using dSIG), or when the PNG output becomes
|
83
|
+
larger than the PNG input.
|
84
|
+
.TP
|
85
|
+
\fB\-log\fP \fIfile\fP
|
86
|
+
Log messages to \fIfile\fP.
|
87
|
+
For safety reasons, \fIfile\fP must have the extension \fC.log\fP.
|
88
|
+
.br
|
89
|
+
This option is deprecated and will be removed eventually. Use shell
|
90
|
+
redirection.
|
91
|
+
.TP
|
92
|
+
\fB\-out\fP \fIfile\fP
|
93
|
+
Write output file to \fIfile\fP.
|
94
|
+
The command line must contain exactly one input file.
|
95
|
+
.TP
|
96
|
+
\fB\-preserve\fP
|
97
|
+
Preserve file attributes (time stamps, file access rights, etc.) where
|
98
|
+
applicable.
|
99
|
+
.TP
|
100
|
+
\fB\-quiet\fP, \fB\-silent\fP
|
101
|
+
Run in quiet mode.
|
102
|
+
.br
|
103
|
+
The messages are still written to the log file if the option \fB\-log\fP is
|
104
|
+
enabled.
|
105
|
+
.TP
|
106
|
+
\fB\-simulate\fP
|
107
|
+
Run in simulation mode: perform the trials, but do not create output files.
|
108
|
+
.TP
|
109
|
+
\fB\-v\fP
|
110
|
+
Enable the options \fB\-verbose\fP and \fB\-version\fP.
|
111
|
+
.TP
|
112
|
+
\fB\-verbose\fP
|
113
|
+
Run in verbose mode.
|
114
|
+
.TP
|
115
|
+
\fB\-version\fP
|
116
|
+
Show copyright, version and build info.
|
117
|
+
.TP
|
118
|
+
\fB\-\-\fP
|
119
|
+
Stop option switch parsing.
|
120
|
+
.SS "PNG encoding and optimization options"
|
121
|
+
.TP
|
122
|
+
\fB\-o\fP \fIlevel\fP
|
123
|
+
Select the optimization level.
|
124
|
+
.br
|
125
|
+
The optimization level 0 enables a set of optimization operations that require
|
126
|
+
minimal effort. There will be no changes to image attributes like bit depth
|
127
|
+
or color type, and no recompression of existing IDAT datastreams.
|
128
|
+
.br
|
129
|
+
The optimization level 1 enables a single IDAT compression trial. The trial
|
130
|
+
chosen is what \fBOptiPNG\fP \fIthinks\fP it's probably the most effective.
|
131
|
+
.br
|
132
|
+
The optimization levels 2 and higher enable multiple IDAT compression trials;
|
133
|
+
the higher the level, the more trials.
|
134
|
+
.br
|
135
|
+
The behavior and the default value of this option may change across different
|
136
|
+
program versions. Use the option \fB\-h\fP to see the details pertaining to
|
137
|
+
your specific version.
|
138
|
+
.TP
|
139
|
+
\fB\-f\fP \fIfilters\fP
|
140
|
+
Select the PNG delta filters.
|
141
|
+
.br
|
142
|
+
The \fIfilters\fP argument is specified as a rangeset (e.g. \fB\-f0\-5\fP),
|
143
|
+
and the default \fIfilters\fP value depends on the optimization level set by
|
144
|
+
the option \fB\-o\fP.
|
145
|
+
.br
|
146
|
+
The filter values 0, 1, 2, 3 and 4 indicate static filtering, and correspond to
|
147
|
+
the standard PNG filter codes (\fINone\fP, \fILeft\fP, \fIUp\fP, \fIAverage\fP
|
148
|
+
and \fIPaeth\fP, respectively). The filter value 5 indicates adaptive filtering,
|
149
|
+
whose effect is defined by the \fBlibpng\fP(3) library used by \fBOptiPNG\fP.
|
150
|
+
.TP
|
151
|
+
\fB\-full\fP
|
152
|
+
Produce a full report on IDAT.
|
153
|
+
This option might slow down the trials.
|
154
|
+
.TP
|
155
|
+
\fB\-i\fP \fItype\fP
|
156
|
+
Select the interlace type (0\-1).
|
157
|
+
.br
|
158
|
+
If the interlace type 0 is selected, the output image shall be non-interlaced
|
159
|
+
(i.e. progressive-scanned). If the interlace type 1 is selected, the output
|
160
|
+
image shall be interlaced using the \fIAdam7\fP method.
|
161
|
+
.br
|
162
|
+
By default, the output shall have the same interlace type as the input.
|
163
|
+
.TP
|
164
|
+
\fB\-nb\fP
|
165
|
+
Do not apply bit depth reduction.
|
166
|
+
.TP
|
167
|
+
\fB\-nc\fP
|
168
|
+
Do not apply color type reduction.
|
169
|
+
.TP
|
170
|
+
\fB\-np\fP
|
171
|
+
Do not apply palette reduction.
|
172
|
+
.TP
|
173
|
+
\fB\-nx\fP
|
174
|
+
Do not apply any lossless image reduction:
|
175
|
+
enable the options \fB\-nb\fP, \fB\-nc\fP and \fB\-np\fP.
|
176
|
+
.TP
|
177
|
+
\fB\-nz\fP
|
178
|
+
Do not recode IDAT datastreams.
|
179
|
+
.br
|
180
|
+
The IDAT optimization operations that do not require recoding (e.g. IDAT
|
181
|
+
chunk concatenation) are still performed.
|
182
|
+
.br
|
183
|
+
This option has effect on PNG input files only.
|
184
|
+
.TP
|
185
|
+
\fB\-zc\fP \fIlevels\fP
|
186
|
+
Select the zlib compression levels used in IDAT compression.
|
187
|
+
.br
|
188
|
+
The \fIlevels\fP argument is specified as a rangeset (e.g. \fB\-zc6\-9\fP),
|
189
|
+
and the default \fIlevels\fP value depends on the optimization level set by
|
190
|
+
the option \fB\-o\fP.
|
191
|
+
.br
|
192
|
+
The effect of this option is defined by the \fBzlib\fP(3) library used by
|
193
|
+
\fBOptiPNG\fP.
|
194
|
+
.TP
|
195
|
+
\fB\-zm\fP \fIlevels\fP
|
196
|
+
Select the zlib memory levels used in IDAT compression.
|
197
|
+
.br
|
198
|
+
The \fIlevels\fP argument is specified as a rangeset (e.g. \fB\-zm8\-9\fP),
|
199
|
+
and the default \fIlevels\fP value depends on the optimization level set by
|
200
|
+
the option \fB\-o\fP.
|
201
|
+
.br
|
202
|
+
The effect of this option is defined by the \fBzlib\fP(3) library used by
|
203
|
+
\fBOptiPNG\fP.
|
204
|
+
.TP
|
205
|
+
\fB\-zs\fP \fIstrategies\fP
|
206
|
+
Select the zlib compression strategies used in IDAT compression.
|
207
|
+
.br
|
208
|
+
The \fIstrategies\fP argument is specified as a rangeset (e.g. \fB\-zs0\-3\fP),
|
209
|
+
and the default \fIstrategies\fP value depends on the optimization level set by
|
210
|
+
the option \fB\-o\fP.
|
211
|
+
.br
|
212
|
+
The effect of this option is defined by the \fBzlib\fP(3) library used by
|
213
|
+
\fBOptiPNG\fP.
|
214
|
+
.TP
|
215
|
+
\fB\-zw\fP \fIsize\fP
|
216
|
+
Select the zlib window size (32k,16k,8k,4k,2k,1k,512,256) used in IDAT
|
217
|
+
compression.
|
218
|
+
.br
|
219
|
+
The \fIsize\fP argument can be specified either in bytes (e.g. 16384) or
|
220
|
+
kilobytes (e.g. 16k). The default \fIsize\fP value is set to the lowest
|
221
|
+
window size that yields an IDAT output as big as if yielded by the value 32768.
|
222
|
+
.br
|
223
|
+
The effect of this option is defined by the \fBzlib\fP(3) library used by
|
224
|
+
\fBOptiPNG\fP.
|
225
|
+
.SS "Editing options"
|
226
|
+
.TP
|
227
|
+
\fB\-snip\fP
|
228
|
+
Cut one image out of multi-image, animation or video files.
|
229
|
+
.br
|
230
|
+
Depending on the input format, this may be either the first or the most
|
231
|
+
relevant (e.g. the largest) image.
|
232
|
+
.TP
|
233
|
+
\fB\-strip\fP \fIobjects\fP
|
234
|
+
Strip metadata objects from a PNG file.
|
235
|
+
.br
|
236
|
+
PNG metadata is the information stored in any ancillary chunk except tRNS.
|
237
|
+
(tRNS represents the alpha channel, which, even if ignored in rendering, is
|
238
|
+
still a proper image channel in the RGBA color space.)
|
239
|
+
.br
|
240
|
+
The only option currently supported is \fB\-strip all\fP.
|
241
|
+
.SS "Notes"
|
242
|
+
Options may come in any order (except for \fB\-\-\fP), before, after, or
|
243
|
+
alternating with file names. Option names are case-insensitive and may be
|
244
|
+
abbreviated to their shortest unique prefix.
|
245
|
+
.P
|
246
|
+
Some options may have arguments that follow the option name, separated by
|
247
|
+
whitespace or the equal sign ('\fB=\fP'). If the option argument is a number
|
248
|
+
or a rangeset, the separator may be omitted. For example:
|
249
|
+
.IP
|
250
|
+
\fB\-out\fP \fCnewfile.png\fP \ <=> \ \fB\-out=\fP\fCnewfile.png\fP
|
251
|
+
.br
|
252
|
+
\fB\-o3\fP \ <=> \ \fB\-o 3\fP \ <=> \ \fB\-o=3\fP
|
253
|
+
.br
|
254
|
+
\fB\-f0,3\-5\fP \ <=> \ \fB\-f 0,3\-5\fP \ <=> \ \fB\-f=0,3\-5\fP
|
255
|
+
.P
|
256
|
+
Rangeset arguments are cumulative; e.g.
|
257
|
+
.IP
|
258
|
+
\fB\-f0 \-f3\-5\fP \ <=> \ \fB\-f0,3\-5\fP
|
259
|
+
.br
|
260
|
+
\fB\-zs0 \-zs1 \-zs2\-3\fP \ <=> \ \fB\-zs0,1,2,3\fP \ <=> \ \fB\-zs0\-3\fP
|
261
|
+
|
262
|
+
.SH "EXTENDED DESCRIPTION"
|
263
|
+
The PNG optimization algorithm consists of the following steps:
|
264
|
+
.TP 4
|
265
|
+
1.
|
266
|
+
Reduce the bit depth, the color type and the color palette of the image.
|
267
|
+
This step may reduce the size of the uncompressed image, which, indirectly, may
|
268
|
+
reduce the size of the compressed image (i.e. the size of the output PNG file).
|
269
|
+
.TP 4
|
270
|
+
2.
|
271
|
+
Run a suite of compression methods and strategies and select the compression
|
272
|
+
parameters that yield the smallest output file.
|
273
|
+
.TP 4
|
274
|
+
3.
|
275
|
+
Store all IDAT contents into a single chunk, eliminating the overhead
|
276
|
+
incurred by repeated IDAT headers and CRCs.
|
277
|
+
.TP 4
|
278
|
+
4.
|
279
|
+
Set the zlib window size inside IDAT to a mininum that does not affect the
|
280
|
+
compression ratio, reducing the memory requirements of PNG decoders.
|
281
|
+
.P
|
282
|
+
Not all of the above steps need to be executed. The behavior depends on the
|
283
|
+
actual input files and user options.
|
284
|
+
.P
|
285
|
+
Step 1 may be customized via the no-reduce options \fB\-nb\fP, \fB\-nc\fP,
|
286
|
+
\fB\-np\fP and \fB\-nx\fP. Step 2 may be customized via the \fB\-o\fP option,
|
287
|
+
and may be fine-tuned via the options \fB\-zc\fP, \fB\-zm\fP, \fB\-zs\fP and
|
288
|
+
\fB\-zw\fP. Step 3 is always executed. Step 4 is executed only if a new IDAT is
|
289
|
+
being created, and may be fine-tuned via the option \fB\-zw\fP.
|
290
|
+
.P
|
291
|
+
Extremely exhaustive searches are not generally expected to yield significant
|
292
|
+
improvements in compression ratio, and are recommended to advanced users only.
|
293
|
+
|
294
|
+
.SH EXAMPLES
|
295
|
+
\fCoptipng file.png \ \ \ \ \ \fP# default speed
|
296
|
+
.br
|
297
|
+
\fCoptipng -o5 file.png \ \fP# slow
|
298
|
+
.br
|
299
|
+
\fCoptipng -o7 file.png \ \fP# very slow
|
300
|
+
|
301
|
+
.SH BUGS
|
302
|
+
Lossless image reductions are not completely implemented.
|
303
|
+
(This does \fInot\fP affect the integrity of the output files.)
|
304
|
+
Here are the missing pieces:
|
305
|
+
.IP
|
306
|
+
\- The color palette reductions are implemented only partially.
|
307
|
+
.br
|
308
|
+
\- The bit depth reductions below 8, for grayscale images, are not implemented
|
309
|
+
yet.
|
310
|
+
.P
|
311
|
+
Encoding of images whose total IDAT size exceeds 2GB is not supported.
|
312
|
+
.P
|
313
|
+
TIFF support is limited to uncompressed, PNG-compatible (grayscale, RGB and
|
314
|
+
RGBA) images.
|
315
|
+
.P
|
316
|
+
Metadata is not imported from the external image formats.
|
317
|
+
.P
|
318
|
+
There is no support for pipes, streams, extended file attributes or access
|
319
|
+
control lists.
|
320
|
+
|
321
|
+
.SH "SEE ALSO"
|
322
|
+
\fBpng\fP(5),
|
323
|
+
\fBlibpng\fP(3),
|
324
|
+
\fBzlib\fP(3),
|
325
|
+
\fBpngcrush\fP(1),
|
326
|
+
\fBpngrewrite\fP(1).
|
327
|
+
|
328
|
+
.SH STANDARDS
|
329
|
+
The files produced by \fBOptiPNG\fP are compliant with \fBPNG\-2003\fP:
|
330
|
+
.br
|
331
|
+
Glenn Randers-Pehrson et al.
|
332
|
+
\fIPortable Network Graphics (PNG) Specification, Second Edition\fP.
|
333
|
+
.br
|
334
|
+
W3C Recommendation 10 November 2003; ISO/IEC IS 15948:2003 (E).
|
335
|
+
.br
|
336
|
+
\fChttp://www.w3.org/TR/PNG/\fP
|
337
|
+
|
338
|
+
.SH AUTHOR
|
339
|
+
\fBOptiPNG\fP is written and maintained by Cosmin Truta.
|
340
|
+
.PP
|
341
|
+
This manual page was originally written by Nelson A. de Oliveira
|
342
|
+
for the Debian Project. It was later updated by Cosmin Truta,
|
343
|
+
and is now part of the \fBOptiPNG\fP distribution.
|
Binary file
|
Binary file
|
@@ -0,0 +1,127 @@
|
|
1
|
+
.Dd 2013-02-25
|
2
|
+
.Dt pngquant 1
|
3
|
+
.Sh NAME
|
4
|
+
.Nm pngquant
|
5
|
+
.Nd PNG converter and lossy image compressor
|
6
|
+
.Sh SYNOPSIS
|
7
|
+
.Nm
|
8
|
+
.Aq options
|
9
|
+
.Op ncolors
|
10
|
+
.Pa file
|
11
|
+
.Op Ar
|
12
|
+
.Nm
|
13
|
+
.Aq options
|
14
|
+
.Op ncolors
|
15
|
+
.Fl
|
16
|
+
.Cm < Ns Pa file
|
17
|
+
.Cm > Ns Pa file
|
18
|
+
.Sh DESCRIPTION
|
19
|
+
.Nm
|
20
|
+
converts 32-bit RGBA PNGs to 8-bit (or smaller) RGBA-palette PNGs, optionally using Floyd-Steinberg dithering.
|
21
|
+
The output filename is the same as the input name except that it ends in
|
22
|
+
.Ql -fs8.png
|
23
|
+
or
|
24
|
+
.Ql -or8.png
|
25
|
+
(unless the input is stdin, in which case the quantized image will go to stdout).
|
26
|
+
The default behavior if the output file exists is to skip the conversion; use
|
27
|
+
.Fl Fl force
|
28
|
+
to overwrite.
|
29
|
+
.Sh OPTIONS
|
30
|
+
.Bl -tag -width -indent
|
31
|
+
.It Fl o Ar out.png , Fl Fl output Ar out.png
|
32
|
+
Writes converted file to the given path. When this option is used only single input file is allowed.
|
33
|
+
.It Fl Fl ext Ar new.png
|
34
|
+
File extension (suffix) to use for output files instead of the default
|
35
|
+
.Ql -fs8.png
|
36
|
+
or
|
37
|
+
.Ql -or8.png .
|
38
|
+
.It Fl f , Fl Fl force
|
39
|
+
Overwrite existing output files.
|
40
|
+
.Do
|
41
|
+
.Fl Fl ext
|
42
|
+
.Ar .png
|
43
|
+
.Fl Fl force
|
44
|
+
.Dc
|
45
|
+
can be used to convert files in place (which is unsafe).
|
46
|
+
.It Fl Fl nofs , Fl Fl ordered
|
47
|
+
Disable Floyd-Steinberg dithering.
|
48
|
+
.It Fl Fl floyd Op Ar =N
|
49
|
+
Set dithering level using fractional number between
|
50
|
+
.Cm 0
|
51
|
+
(none) and
|
52
|
+
.Cm 1
|
53
|
+
(full, the default).
|
54
|
+
.It Fl s Ar N , Fl Fl speed Ar N
|
55
|
+
.Cm 1
|
56
|
+
(brute-force) to
|
57
|
+
.Cm 11
|
58
|
+
(fastest). The default is
|
59
|
+
.Cm 3 .
|
60
|
+
Speed
|
61
|
+
.Cm 10
|
62
|
+
has 5% lower quality, but is about 8 times faster than the default. Speed 11 disables dithering and lowers compression level.
|
63
|
+
.It Fl Q Ar min-max , Fl Fl quality Ar min-max
|
64
|
+
.Va min
|
65
|
+
and
|
66
|
+
.Va max
|
67
|
+
are numbers in range
|
68
|
+
.Cm 0
|
69
|
+
(worst) to
|
70
|
+
.Cm 100
|
71
|
+
(perfect), similar to JPEG.
|
72
|
+
.Nm
|
73
|
+
will use the least amount of colors required to meet or exceed the
|
74
|
+
.Va max
|
75
|
+
quality. If conversion results in quality below the
|
76
|
+
.Va min
|
77
|
+
quality the image won't be saved (or if outputting to stdin, 24-bit original will be output) and pngquant will exit with status code
|
78
|
+
.Er 99 .
|
79
|
+
.It Fl Fl skip-if-larger
|
80
|
+
If conversion results in a file larger than the original, the image won't be saved and pngquant will exit with status code
|
81
|
+
.Er 98 .
|
82
|
+
Additionally, file size gain must be greater than the amount of quality lost. If quality drops by 50%, it will expect 50% file size reduction to consider it worthwhile.
|
83
|
+
.It Fl Fl posterize Ar bits
|
84
|
+
Truncate number of least significant bits of color (per channel). Use this when image will be output on low-depth displays (e.g. 16-bit RGB).
|
85
|
+
.Nm
|
86
|
+
will make almost-opaque pixels fully opaque and will reduce amount of semi-transparent colors. When this option is enabled the default filename suffix is
|
87
|
+
.Ql -ie-fs8.png
|
88
|
+
/
|
89
|
+
.Ql -ie-or8.png .
|
90
|
+
.It Fl Fl transbug
|
91
|
+
Workaround for readers that expect fully transparent color to be the last entry in the palette.
|
92
|
+
.It Fl v , Fl Fl verbose
|
93
|
+
Enable verbose messages showing progress and information about input/output. Opposite is
|
94
|
+
.Fl Fl quiet .
|
95
|
+
Errors are output to
|
96
|
+
.Pa stderr
|
97
|
+
regardless of this option.
|
98
|
+
.It Fl V , Fl Fl version
|
99
|
+
Display version on
|
100
|
+
.Pa stdout
|
101
|
+
and exit.
|
102
|
+
.It Fl h , Fl Fl help
|
103
|
+
Display help and exit.
|
104
|
+
.El
|
105
|
+
.Sh EXAMPLE
|
106
|
+
Creating a new image with the number of colors reduced to 64:
|
107
|
+
.Bd -ragged -offset indent
|
108
|
+
.Nm
|
109
|
+
.Cm 64 image.png
|
110
|
+
.Ed
|
111
|
+
.Pp
|
112
|
+
The resulting image will have 64 colors and will be saved as
|
113
|
+
.Pa image-fs8.png .
|
114
|
+
.Pp
|
115
|
+
Overwriting image in-place if it can be reduced without too much quality loss:
|
116
|
+
.Bd -ragged -offset indent
|
117
|
+
.Nm
|
118
|
+
.Cm -f --ext .png --quality 70-95 image.png
|
119
|
+
.Ed
|
120
|
+
.Sh AUTHOR
|
121
|
+
.Nm
|
122
|
+
is developed by Kornel Lesinski
|
123
|
+
.Aq Mt kornel@pngquant.org
|
124
|
+
based on code by Greg Roelofs
|
125
|
+
.Aq Mt newt@pobox.com .
|
126
|
+
.Pp
|
127
|
+
.Lk https://pngquant.org "pngquant homepage" .
|