You've already forked imgproxy
mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-11-29 23:07:40 +02:00
Limit GIF frames to being processed
This commit is contained in:
@@ -425,7 +425,7 @@ func transformGif(ctx context.Context, img **C.struct__VipsImage, po *processing
|
||||
return err
|
||||
}
|
||||
|
||||
framesCount := imgHeight / frameHeight
|
||||
framesCount := minInt(imgHeight/frameHeight, conf.MaxGifFrames)
|
||||
|
||||
frames := make([]*C.struct__VipsImage, framesCount)
|
||||
defer func() {
|
||||
|
||||
Reference in New Issue
Block a user