Speedup processing

This commit is contained in:
DarthSim
2023-01-06 16:36:52 +03:00
parent e263ef671a
commit f89ced23e4
2 changed files with 23 additions and 10 deletions

View File

@@ -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)
}