Color changing under graphic inclusion with graphicx

Herbert Voss Herbert.Voss at fu-berlin.de
Sat Jan 9 21:40:27 CET 2021



Am 09.01.21 um 21:08 schrieb Paulo Ney de Souza:
> 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}

try

\usepackage[RGB]{xcolor}

to use xcolor with the colormodel RGB. A color in different models
is not always the same!

my output is attached.


Herbert





> \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}
> ````
>
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto 2021-01-09 um 21.39.11.png
Type: image/png
Size: 15509 bytes
Desc: not available
URL: <https://tug.org/pipermail/texhax/attachments/20210109/99011037/attachment.png>


More information about the texhax mailing list.