mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-10 20:22:31 +02:00
Min libvips version is 8.10
This commit is contained in:
@@ -112,17 +112,6 @@ func transformAnimated(ctx context.Context, img *vips.Image, po *options.Process
|
||||
return err
|
||||
}
|
||||
|
||||
// Legacy fields
|
||||
// TODO: remove this in major update
|
||||
gifLoop, err := img.GetIntDefault("gif-loop", -1)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
gifDelay, err := img.GetIntDefault("gif-delay", -1)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
watermarkEnabled := po.Watermark.Enabled
|
||||
po.Watermark.Enabled = false
|
||||
defer func() { po.Watermark.Enabled = watermarkEnabled }()
|
||||
@@ -182,15 +171,6 @@ func transformAnimated(ctx context.Context, img *vips.Image, po *options.Process
|
||||
img.SetInt("loop", loop)
|
||||
img.SetInt("n-pages", framesCount)
|
||||
|
||||
// Legacy fields
|
||||
// TODO: remove this in major update
|
||||
if gifLoop >= 0 {
|
||||
img.SetInt("gif-loop", gifLoop)
|
||||
}
|
||||
if gifDelay >= 0 {
|
||||
img.SetInt("gif-delay", gifDelay)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user