<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 11, 2021 at 1:14 PM Ulrike Fischer <<a href="mailto:news3@nililand.de">news3@nililand.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am Sun, 10 Jan 2021 11:20:20 -0800 schrieb Paulo Ney de Souza:<br>
<br>
> As Phil has already determined, the problem only occurs in XeTeX (not in<br>
> pdfTeX or LuaTeX).<br>
<br>
Yes, why didn't you mention directly which engine you are using?<br></blockquote><div> </div><div><br></div><div>Because we are only humans Ulrike. Sorry! I know the drill very well, but it was </div><div>an incredibly hard bug to pin down -- and I am not sure we are done. It was</div><div>caught in a Production Suite we developed for a publisher, in the final printing</div><div>of a cover for a book, by someone with a very good eye. For many weeks we</div><div>(erroneously) treated as some sort of problem  at the printer end (we do have</div><div>a fair share of those) or some bad conversion of the PDF.</div><div><br></div><div>There were many levels and a lot of software packages involved (ImageMagic, </div><div>GIMP, TeX, LaTeX packages, ICC profiles, Acrobat ... and whatever else the</div><div>printers do to it) and finding the colors, producing the images for the MWE was</div><div>incredibly complex. Soo much so that I initially forgot about noting the pdf,xe,luatex </div><div>differences. Phil picked up gracefully and pretty quickly.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Well the backend of xelatex, dvipdfmx, has quite extended PNG<br>
support, see the documentation (texdoc dvipdfmx).<br>
<br>
And looking at the pdf one can see that your images are included<br>
with different color spaces. The "wrong" uses CalRGB<br>
<br>
<</ColorSpace[/Indexed[/CalRGB<</WhitePoint[.95046 1<br>
1.08906]/Gamma[2.19998 2.19998<br>
2.19998]/Matrix[.41239 .21264 .01933<br>
.35758 .71517 .11919 .18048 .07219 .95053]>>]1<504053ffffff>] <br>
<br>
The other one DeviceRGB: <br>
<br>
<</ColorSpace[/Indexed/DeviceRGB 1<504053ffffff>]<br><br>
pdftex uses DeviceRGB in both cases. <br>
<br>
I have no idea if  this can be configured, you could check the<br>
documentation or ask on the dvipdfmx mailing list.<br>
<br>
-- <br>
Ulrike Fischer <br>
<a href="https://www.troubleshooting-tex.de/" rel="noreferrer" target="_blank">https://www.troubleshooting-tex.de/</a></blockquote><div><br></div><div><br></div><div>Many thanks will follow up with them.</div><div><br></div><div>Paulo Ney </div></div></div>