1
0
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:
DarthSim
2018-11-15 20:04:12 +06:00
parent d9d143c9f8
commit e8845f671b
5 changed files with 21 additions and 2 deletions

View File

@@ -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() {