File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
Requires libvips v8.10.6
6
6
7
+ ### v0.28.3 - TBD
8
+
9
+ * Skip shrink-on-load for multi-page WebP.
10
+ [ #2714 ] ( https://github.com/lovell/sharp/issues/2714 )
11
+
7
12
### v0.28.2 - 10th May 2021
8
13
9
14
* Allow ` withMetadata ` to set ` density ` .
Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ class PipelineWorker : public Napi::AsyncWorker {
227
227
xshrink == yshrink && xshrink >= 2 * shrink_on_load_factor &&
228
228
(inputImageType == sharp::ImageType::JPEG || inputImageType == sharp::ImageType::WEBP) &&
229
229
baton->gamma == 0 && baton->topOffsetPre == -1 && baton->trimThreshold == 0.0 &&
230
- image.width () > 3 && image.height () > 3
230
+ image.width () > 3 && image.height () > 3 && baton-> input -> pages == 1
231
231
) {
232
232
if (xshrink >= 8 * shrink_on_load_factor) {
233
233
xfactor = xfactor / 8 ;
You can’t perform that action at this time.
0 commit comments