1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-02-12 11:46:10 +02:00

Fix copy memory on WebP size check

This commit is contained in:
DarthSim 2020-12-28 16:41:07 +06:00
parent e05fa1d2e7
commit ca97c715a4

View File

@ -429,10 +429,10 @@ func transformImage(ctx context.Context, img *vipsImage, data []byte, po *proces
return err
}
logWarning("WebP dimension size is limited to %d. The image is rescaled to %dx%d", int(webpMaxDimension), img.Width(), img.Height())
}
if err = copyMemoryAndCheckTimeout(ctx, img); err != nil {
return err
if err = copyMemoryAndCheckTimeout(ctx, img); err != nil {
return err
}
}
}