mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Ensure crop occurs on y-axis
This commit is contained in:
@@ -151,7 +151,7 @@ void resize_async(uv_work_t *work) {
|
||||
g_object_unref(shrunk);
|
||||
|
||||
VipsImage *canvased = vips_image_new();
|
||||
if (affined->Xsize != baton->width && affined->Ysize != baton->height) {
|
||||
if (affined->Xsize != baton->width || affined->Ysize != baton->height) {
|
||||
if (baton->crop && affined->Xsize != baton->width && affined->Ysize != baton->height) {
|
||||
// Crop
|
||||
int width = std::min(affined->Xsize, baton->width);
|
||||
|
||||
Reference in New Issue
Block a user