You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> The optimization level 0 enables a set of optimization operations that require minimal effort. There will be no changes to image attributes like bit depth or color type, and no recompression of existing IDAT datastreams. The optimization level 1 enables a single IDAT compression trial. The trial chosen is what. OptiPNG thinks it’s probably the most effective. The optimization levels 2 and higher enable multiple IDAT compression trials; the higher the level, the more trials.
71
-
72
-
Level and trials:
73
-
74
-
1. 1 trial
75
-
2. 8 trials
76
-
3. 16 trials
77
-
4. 24 trials
78
-
5. 48 trials
79
-
6. 120 trials
80
-
7. 240 trials
81
-
82
-
#### progressive *(jpg)*
83
-
84
-
Type: `boolean`
85
-
Default: `false`
86
-
87
-
Lossless conversion to progressive.
88
-
89
-
#### interlaced *(gif)*
90
-
91
-
Type: `boolean`
92
-
Default: `false`
93
-
94
-
Interlace gif for progressive rendering.
95
-
96
-
#### svgo *(svg)*
97
-
98
-
Type: `object`
99
-
Default: `{}`
100
-
101
-
Pass options to [svgo](https://github.com/svg/svgo).
102
-
103
-
#### bypassOnDebug *(all)*
104
-
105
-
Type: `boolean`
106
-
Default: `false`
107
-
108
-
Using this, no processing is done when webpack 'debug' mode is used and the loader acts as a regular file-loader. Use this to speed up initial and, to a lesser extent, subsequent compilations while developing or using webpack-dev-server. Normal builds are processed normally, outputting oprimized files.
109
-
110
-
### imageminPngquant(options)
111
-
112
-
#### options.floyd
113
-
114
-
Type: `number`
115
-
Default: `0.5`
116
-
117
-
Controls level of dithering (0 = none, 1 = full).
118
-
119
-
#### options.nofs
120
-
121
-
Type: `boolean`
122
-
Default: `false`
123
-
124
-
Disable Floyd-Steinberg dithering.
125
-
126
-
#### options.posterize
127
-
128
-
Type: `number`
129
-
130
-
Reduce precision of the palette by number of bits. Use when the image will be
131
-
displayed on low-depth screens (e.g. 16-bit displays or compressed textures).
132
-
133
-
#### options.quality
134
-
135
-
Type: `string`
136
-
137
-
Instructs pngquant to use the least amount of colors required to meet or exceed
138
-
the max quality. If conversion results in quality below the min quality the
139
-
image won't be saved.
140
-
141
-
Min and max are numbers in range 0 (worst) to 100 (perfect), similar to JPEG.
142
-
143
-
#### options.speed
144
-
145
-
Type: `number`
146
-
Default: `3`
147
-
148
-
Speed/quality trade-off from `1` (brute-force) to `10` (fastest). Speed `10` has
149
-
5% lower quality, but is 8 times faster than the default.
0 commit comments