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