mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-29 13:03:50 +02:00
Fix crashes during processing of large animated WebPs
This commit is contained in:
@@ -155,6 +155,12 @@ func transformAnimated(ctx context.Context, img *vips.Image, po *options.Process
|
||||
}
|
||||
}()
|
||||
|
||||
// Splitting and joining back large WebPs may cause segfault.
|
||||
// Caching page region cures this
|
||||
if err = img.LineCache(frameHeight); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
for i := 0; i < framesCount; i++ {
|
||||
frame := new(vips.Image)
|
||||
|
||||
|
Reference in New Issue
Block a user