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

Disable processing in linear colorspace by default

This commit is contained in:
DarthSim
2019-04-04 21:57:44 +06:00
parent cdc3cac064
commit e99241aea0
3 changed files with 4 additions and 1 deletions

View File

@@ -316,7 +316,7 @@ func transformImage(ctx context.Context, img **C.VipsImage, data []byte, po *pro
return err
}
convertToLinear := scale != 1 || po.Dpr != 1
convertToLinear := conf.UseLinearColorspace && (scale != 1 || po.Dpr != 1)
if convertToLinear {
if err = vipsLinearColourspace(img); err != nil {