Skip to content

Wrong svg watermark color with color spaces #1694

Description

@marcoreni

We are encountering a problem with applying an SVG watermark on top of an image. We noticed that the watermark has a slightly different color according to the input image, so we tried to understand what the difference was.

It seems that, if the source image color profile is Adobe RGB, the color of the watermark gets mutated.

Scenario OK (sRGB) => http://localhost:8080/_/wms:768:480/wm:1:sowe:0:0:1/wmu:aHR0cDovL2Q0amVrZ3JmbHR5OTkubWVkaWFzZXRwbGF5Lm1lZGlhc2V0Lml0L21pc2MvdGVtcC9ncmFkaWVudF9jcF9zMS5zdmc/rs:fill-down:768:480:1/dpr:2/plain/https%3A%2F%2Fdam.cloud.mediaset.net%2Fasset%2F1c8bd956-a467-40e4-b655-22f51a0a6d21%2Fbd096f26-a4f4-4e49-b80d-b14d0507ac21_source-aspect-ratio_default_0.jpg

Scenario "with different color" (Adobe RGB) => http://localhost:8080/_/wms:768:480/wm:1:sowe:0:0:1/wmu:aHR0cDovL2Q0amVrZ3JmbHR5OTkubWVkaWFzZXRwbGF5Lm1lZGlhc2V0Lml0L21pc2MvdGVtcC9ncmFkaWVudF9jcF9zMS5zdmc/rs:fill-down:768:480:1/dpr:2/plain/https%3A%2F%2Fdam.cloud.mediaset.net%2Fasset%2Fb165a93e-201f-4c69-8d0e-a7298dbb9350%2FGenerated-image.jpg

We also tried changing the watermark image, it seems that the problem persists (you can see that the image is "bluer").

Scenario OK (sRGB) => http://localhost:8080/_/wms:768:480/wm:1:sowe:0:0:1/wmu:aHR0cDovL2Q0amVrZ3JmbHR5OTkubWVkaWFzZXRwbGF5Lm1lZGlhc2V0Lml0L21pc2MvdGVtcC9jdXAuc3Zn/rs:fill-down:768:480:1/dpr:2/plain/https%3A%2F%2Fdam.cloud.mediaset.net%2Fasset%2F1c8bd956-a467-40e4-b655-22f51a0a6d21%2Fbd096f26-a4f4-4e49-b80d-b14d0507ac21_source-aspect-ratio_default_0.jpg

Scenario KO (Adobe RGB) => http://localhost:8080/_/wms:768:480/wm:1:sowe:0:0:1/wmu:aHR0cDovL2Q0amVrZ3JmbHR5OTkubWVkaWFzZXRwbGF5Lm1lZGlhc2V0Lml0L21pc2MvdGVtcC9jdXAuc3Zn/rs:fill-down:768:480:1/dpr:2/plain/https%3A%2F%2Fdam.cloud.mediaset.net%2Fasset%2Fb165a93e-201f-4c69-8d0e-a7298dbb9350%2FGenerated-image.jpg

We were able to replicate the same issue also on a different image that presented the same "Adobe RGB" color profile.

What could be the issue? We expect the color of the svg to be the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions