mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-09 19:52:30 +02:00
Security processing options
This commit is contained in:
@@ -120,7 +120,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, po.SecurityOptions); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user