File tree 2 files changed +6
-2
lines changed 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2
2
- fix transparency detection in merge, thanks Haida
3
3
- define env var VIPS_WARNING to hide warning messages
4
4
- shut down dzsave output earlier to help mark-sweep bindings
5
+ - fix webp thumbnail upscale, thanks Kleis
5
6
6
7
9/6/17 started 8.5.7
7
8
- better smartcrop
Original file line number Diff line number Diff line change @@ -254,8 +254,11 @@ vips_thumbnail_open( VipsThumbnail *thumbnail )
254
254
g_info ( "loading PDF/SVG with factor %g pre-scale" , scale );
255
255
}
256
256
else if ( vips_isprefix ( "VipsForeignLoadWebp" , thumbnail -> loader ) ) {
257
- shrink = vips_thumbnail_calculate_shrink ( thumbnail ,
258
- thumbnail -> input_width , thumbnail -> input_height );
257
+ shrink = VIPS_MAX ( 1.0 ,
258
+ vips_thumbnail_calculate_shrink ( thumbnail ,
259
+ thumbnail -> input_width ,
260
+ thumbnail -> input_height ) );
261
+
259
262
g_info ( "loading webp with factor %d pre-shrink" , shrink );
260
263
}
261
264
You can’t perform that action at this time.
0 commit comments