mirror of
https://github.com/imgproxy/imgproxy.git
synced 2026-06-18 17:43:40 +02:00
Fix copy memory on WebP size check
This commit is contained in:
+3
-3
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user