Wrong svg watermark color with color spaces
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 "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").
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.
Source: imgproxy/imgproxy