1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-12-01 23:11:31 +02:00

Always import ICC if image is not RGB

This commit is contained in:
DarthSim
2023-03-07 00:21:16 +03:00
parent 20960b2013
commit cae8af9ac5
2 changed files with 6 additions and 3 deletions

View File

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