1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-12-05 23:28:10 +02:00

Check timeout automatically

This commit is contained in:
DarthSim
2022-06-23 17:23:04 +06:00
parent d80a203390
commit a44e8dc94b
8 changed files with 9 additions and 25 deletions

View File

@@ -29,5 +29,5 @@ func fixWebpSize(pctx *pipelineContext, img *vips.Image, po *options.ProcessingO
log.Warningf("WebP dimension size is limited to %d. The image is rescaled to %dx%d", int(webpMaxDimension), img.Width(), img.Height())
return copyMemoryAndCheckTimeout(pctx.ctx, img)
return img.CopyMemory()
}