Color changing under graphic inclusion with graphicx

Ulrike Fischer news3 at nililand.de
Mon Jan 11 22:13:11 CET 2021


Am Sun, 10 Jan 2021 11:20:20 -0800 schrieb Paulo Ney de Souza:

> As Phil has already determined, the problem only occurs in XeTeX (not in
> pdfTeX or LuaTeX).

Yes, why didn't you mention directly which engine you are using?

Well the backend of xelatex, dvipdfmx, has quite extended PNG
support, see the documentation (texdoc dvipdfmx).

And looking at the pdf one can see that your images are included
with different color spaces. The "wrong" uses CalRGB

<</ColorSpace[/Indexed[/CalRGB<</WhitePoint[.95046 1
1.08906]/Gamma[2.19998 2.19998
2.19998]/Matrix[.41239 .21264 .01933
.35758 .71517 .11919 .18048 .07219 .95053]>>]1<504053ffffff>] 

The other one DeviceRGB: 

<</ColorSpace[/Indexed/DeviceRGB 1<504053ffffff>]


pdftex uses DeviceRGB in both cases. 

I have no idea if  this can be configured, you could check the
documentation or ask on the dvipdfmx mailing list.

-- 
Ulrike Fischer 
https://www.troubleshooting-tex.de/



More information about the texhax mailing list.