You've already forked imgproxy
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user