mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-05 19:23:07 +02:00
Speedup processing
This commit is contained in:
@@ -16,9 +16,5 @@ func scale(pctx *pipelineContext, img *vips.Image, po *options.ProcessingOptions
|
||||
wscale, hscale = hscale, wscale
|
||||
}
|
||||
|
||||
if err := img.Resize(wscale, hscale); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return img.CopyMemory()
|
||||
return img.Resize(wscale, hscale)
|
||||
}
|
||||
|
Reference in New Issue
Block a user