From P.Taylor at Hellenic-Institute.Uk Sun Jan 10 13:42:40 2021 From: P.Taylor at Hellenic-Institute.Uk (Philip Taylor) Date: Sun, 10 Jan 2021 12:42:40 +0000 Subject: [XeTeX] Color changing under graphic inclusion with graphicx In-Reply-To: <3ea45983-1dea-a5e5-793d-83e35e30c1d2@Hellenic-Institute.Uk> References: <3ea45983-1dea-a5e5-793d-83e35e30c1d2@Hellenic-Institute.Uk> Message-ID: <144137b1-b529-7c0a-907c-f0bc5b6db289@Hellenic-Institute.Uk> [Just realised that the XeTeX list should have been cc'd, so doing so now and will forward Paulo's original images as attachments] Philip Taylor wrote: > Ulrike Fischer wrote: >> I can't reproduce your problem with the files you provided. >> >> How do you compile? Which TeX-System do you have? And which viewer >> do you use to view the pdf? Can you provide the pdf you get? >> > > For me (Windows 7 64-bit Enterprise, TeX Live 2020), PdfLaTeX does > /not/ shew the problem whilst XeLaTeX does.? The artifacts are more > visible in the TeXworks previewer than in Adobe Acrobat CC, but are > nonetheless visible in the latter. > > /Philip Taylor/ /--------/ > I have (a couple) of PNG images with a background color of, for > example, RGB(80,64,83),?that when placed on a page of the same > background color with {graphicx} -- they show a distinct tonality > against the background -- which is of the same color. > > ```` > \documentclass{report} > > \usepackage{xcolor} > \definecolor{bgcolor}{RGB}{80,64,83} > > \usepackage{graphicx} > \pagestyle{empty} > > \begin{document} > > \pagecolor{bgcolor} > \includegraphics[width=0.5\textwidth]{A.png} > \quad > \includegraphics[width=0.5\textwidth]{B.png} > > \medskip > > \includegraphics[width=0.5\textwidth]{A-gimp.png} > \quad > \includegraphics[width=0.5\textwidth]{B-gimp.png} > > \end{document} > ```` > > Checking the colors in the included files one can see they have > changed from (80,64,83) to (71,56,74) in the included images. > > Just opening the images on `GIMP` and exporting it as-is with the > default choices of > > export-settings.png > > fixes everything and the new inclusion now gets the exact color they > were set to begin with, the same as the background, as shown below > (second line). > > > together.png > > What is that TeX needs from the PNG's to preserve their color when > included in a page? > > Paulo Ney > > > PS. For experimentation here are the same images, before and after > opening with GIMP. > > > > > B-gimp.png > > > A-gimp.png > > > B.png > > > A.png > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: efldiicngommjdmj.png Type: image/png Size: 43534 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: holnfpdoknladdcb.png Type: image/png Size: 9599 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: egbnjombkgmmgmfj.png Type: image/png Size: 8340 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fcpldhhpnobjodfk.png Type: image/png Size: 2852 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ilcioddcmpdlgcne.png Type: image/png Size: 8347 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: nmeepjdgoplhhgef.png Type: image/png Size: 2852 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: A.png Type: image/png Size: 340 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: A-gimp.png Type: image/png Size: 190 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: B.png Type: image/png Size: 4584 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: B-gimp.png Type: image/png Size: 4025 bytes Desc: not available URL: From gnwiii at gmail.com Sun Jan 10 16:54:00 2021 From: gnwiii at gmail.com (George N. White III) Date: Sun, 10 Jan 2021 11:54:00 -0400 Subject: [XeTeX] Color changing under graphic inclusion with graphicx In-Reply-To: <144137b1-b529-7c0a-907c-f0bc5b6db289@Hellenic-Institute.Uk> References: <3ea45983-1dea-a5e5-793d-83e35e30c1d2@Hellenic-Institute.Uk> <144137b1-b529-7c0a-907c-f0bc5b6db289@Hellenic-Institute.Uk> Message-ID: On Sun, 10 Jan 2021 at 08:44, Philip Taylor wrote: > [Just realised that the XeTeX list should have been cc'd, so doing so now > and will forward Paulo's original images as attachments] > > Philip Taylor wrote: > > Ulrike Fischer wrote: > > I can't reproduce your problem with the files you provided. > > How do you compile? Which TeX-System do you have? And which viewer > do you use to view the pdf? Can you provide the pdf you get? > > > > For me (Windows 7 64-bit Enterprise, TeX Live 2020), PdfLaTeX does *not* > shew the problem whilst XeLaTeX does. The artifacts are more visible in > the TeXworks previewer than in Adobe Acrobat CC, but are nonetheless > visible in the latter. > > *Philip Taylor* > > *--------* > > I have (a couple) of PNG images with a background color of, for example, > RGB(80,64,83), that when placed on a page of the same background color with > {graphicx} -- they show a distinct tonality against the background -- which > is of the same color. > > ```` > \documentclass{report} > > \usepackage{xcolor} > \definecolor{bgcolor}{RGB}{80,64,83} > > \usepackage{graphicx} > \pagestyle{empty} > > \begin{document} > > \pagecolor{bgcolor} > \includegraphics[width=0.5\textwidth]{A.png} > \quad > \includegraphics[width=0.5\textwidth]{B.png} > > \medskip > > \includegraphics[width=0.5\textwidth]{A-gimp.png} > \quad > \includegraphics[width=0.5\textwidth]{B-gimp.png} > > \end{document} > ```` > > PNG supports color management, so the appearance may not match that of the raw (uncorrected) RGB values PNG 1.2 Color Appendix . -- George N. White III -------------- next part -------------- An HTML attachment was scrubbed... URL: