remove centre from resize in thumbnail

thanks kleis
This commit is contained in:
John Cupitt 2017-11-26 12:01:30 +00:00
parent 0363ac6ab9
commit 3754ddb947
1 changed files with 0 additions and 3 deletions

View File

@ -416,11 +416,8 @@ vips_thumbnail_build( VipsObject *object )
vips_thumbnail_calculate_shrink( thumbnail,
in->Xsize, in->Ysize, &hshrink, &vshrink );
/* Use centre convention to better match imagemagick.
*/
if( vips_resize( in, &t[4], 1.0 / hshrink,
"vscale", 1.0 / vshrink,
"centre", TRUE,
NULL ) )
return( -1 );
in = t[4];