1
0
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:
DarthSim
2022-11-29 18:25:38 +06:00
parent c105e66e39
commit 1ededbb11f
6 changed files with 30 additions and 12 deletions

View File

@ -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
}