fix webp upscale in thumbnail
we could try to use webp shrink on load to upscale, oops see https://github.com/jcupitt/libvips/issues/710
This commit is contained in:
parent
f2c55e80fe
commit
f2576003b7
@ -2,6 +2,7 @@
|
||||
- fix transparency detection in merge, thanks Haida
|
||||
- define env var VIPS_WARNING to hide warning messages
|
||||
- shut down dzsave output earlier to help mark-sweep bindings
|
||||
- fix webp thumbnail upscale, thanks Kleis
|
||||
|
||||
9/6/17 started 8.5.7
|
||||
- better smartcrop
|
||||
|
@ -254,8 +254,11 @@ vips_thumbnail_open( VipsThumbnail *thumbnail )
|
||||
g_info( "loading PDF/SVG with factor %g pre-scale", scale );
|
||||
}
|
||||
else if( vips_isprefix( "VipsForeignLoadWebp", thumbnail->loader ) ) {
|
||||
shrink = vips_thumbnail_calculate_shrink( thumbnail,
|
||||
thumbnail->input_width, thumbnail->input_height );
|
||||
shrink = VIPS_MAX( 1.0,
|
||||
vips_thumbnail_calculate_shrink( thumbnail,
|
||||
thumbnail->input_width,
|
||||
thumbnail->input_height ) );
|
||||
|
||||
g_info( "loading webp with factor %d pre-shrink", shrink );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user