parent
0363ac6ab9
commit
3754ddb947
|
@ -416,11 +416,8 @@ vips_thumbnail_build( VipsObject *object )
|
||||||
vips_thumbnail_calculate_shrink( thumbnail,
|
vips_thumbnail_calculate_shrink( thumbnail,
|
||||||
in->Xsize, in->Ysize, &hshrink, &vshrink );
|
in->Xsize, in->Ysize, &hshrink, &vshrink );
|
||||||
|
|
||||||
/* Use centre convention to better match imagemagick.
|
|
||||||
*/
|
|
||||||
if( vips_resize( in, &t[4], 1.0 / hshrink,
|
if( vips_resize( in, &t[4], 1.0 / hshrink,
|
||||||
"vscale", 1.0 / vshrink,
|
"vscale", 1.0 / vshrink,
|
||||||
"centre", TRUE,
|
|
||||||
NULL ) )
|
NULL ) )
|
||||||
return( -1 );
|
return( -1 );
|
||||||
in = t[4];
|
in = t[4];
|
||||||
|
|
Loading…
Reference in New Issue