1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-11-29 23:07:40 +02:00

Merge branch 'version/3' into version/3-refactoring

This commit is contained in:
DarthSim
2021-06-28 16:11:33 +06:00
16 changed files with 122 additions and 257 deletions

View File

@@ -14,7 +14,7 @@ func importColorProfile(pctx *pipelineContext, img *vips.Image, po *options.Proc
convertToLinear := config.UseLinearColorspace && (pctx.wscale != 1 || pctx.hscale != 1)
if convertToLinear || !img.IsSRGB() {
if convertToLinear {
if err := img.ImportColourProfile(); err != nil {
return err
}