mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-06-22 22:37:41 +02:00
Add IMGPROXY_MAX_ANIMATION_FRAME_RESOLUTION config
This commit is contained in:
@ -119,7 +119,7 @@ func transformAnimated(ctx context.Context, img *vips.Image, po *options.Process
|
||||
framesCount := imath.Min(img.Height()/frameHeight, config.MaxAnimationFrames)
|
||||
|
||||
// Double check dimensions because animated image has many frames
|
||||
if err = security.CheckDimensions(imgWidth, frameHeight*framesCount); err != nil {
|
||||
if err = security.CheckDimensions(imgWidth, frameHeight, framesCount); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user