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
Set the filter to use when resizing (e.g. Catrom is very good for reduction, while hermite is good for enlargement).
124
132
125
133
#### options.sharpen
126
134
127
-
Type: `Boolean | String`
135
+
Type: `Boolean | String`
136
+
128
137
Default value: `false`
129
138
130
139
Set to `true` to apply a slight unsharp mask after resizing.
131
140
Or set a string to setup the unsharp. See [gm unsharp documentation](http://www.graphicsmagick.org/GraphicsMagick.html#details-unsharp). (e.g. '0.5x0.5+0.5+0.008')
132
141
133
142
#### options.samplingFactor
134
143
135
-
Type: `Array[Cr, Cb]`
144
+
Type: `Array[Cr, Cb]`
145
+
136
146
Possible values: `[2, 2]` for 4:2:2, `[1, 1]` for 4:1:1
137
147
138
148
Define chroma subsampling
139
149
140
150
#### options.noProfile
141
151
142
-
Type: `Boolean`
152
+
Type: `Boolean`
153
+
143
154
Default value: `false`
144
155
145
156
Set to `true` to enforce removal of all embedded profile data like icc, exif, iptc, xmp
@@ -149,21 +160,31 @@ cases where thumbnails are generated for web preview purposes. For details look
149
160
150
161
#### options.imageMagick
151
162
152
-
Type: `Boolean`
163
+
Type: `Boolean`
164
+
153
165
Default value: `false`
154
166
155
167
Set to `true` when using ImageMagick instead of GraphicsMagick.
156
168
157
169
### options.background
158
170
159
171
Type: `String`
172
+
160
173
Possible values: `none` to keep transparency, `beige` to set beige background, `#888` for gray.
161
174
162
175
Define background color (default is white), for example when converting SVG images to PNGs.
163
176
See [gm background documentation](http://www.graphicsmagick.org/GraphicsMagick.html#details-background)
164
177
178
+
### options.flatten
179
+
180
+
Type: `Boolean`
181
+
182
+
Default value: `false`
183
+
184
+
Combines image layers into one. Can be used for layered formats such as PNG. See [gm flatten documentation](http://www.graphicsmagick.org/GraphicsMagick.html#details-flatten).
0 commit comments