mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-10 20:22:31 +02:00
Optimize memory usage in some scenarios
This commit is contained in:
@@ -35,7 +35,7 @@ var mainPipeline = pipeline{
|
||||
flatten,
|
||||
watermark,
|
||||
exportColorProfile,
|
||||
finalize,
|
||||
stripMetadata,
|
||||
}
|
||||
|
||||
func isImageTypePreferred(imgtype imagetype.Type) bool {
|
||||
@@ -182,10 +182,6 @@ func transformAnimated(ctx context.Context, img *vips.Image, po *options.Process
|
||||
return err
|
||||
}
|
||||
|
||||
if err = img.CopyMemory(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if len(delay) == 0 {
|
||||
delay = make([]int, framesCount)
|
||||
for i := range delay {
|
||||
|
Reference in New Issue
Block a user