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:
parent
e05fa1d2e7
commit
ca97c715a4
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user