below screenshot of the same image showing (left) the image as desired in a generic image viewer and (right) after inclusion with XeLaTex and includegraphics
. i remember having to deal with something similar years ago but googling did not bring anything relevant to light. anybody know how to get XeLaTex/includegraphics
to not change the image background?
-
Is it a transparent png? Is the page background involved?– user287367Commented Aug 22, 2023 at 22:05
-
@rallg afaics, no. as can be seen the 'background' of the image simply white. the page background (in beamer) is also simply white/default.– regnirpsjCommented Aug 23, 2023 at 1:00
Add a comment
|
1 Answer
so, turns out that color profiles may wreak some havoc here; following https://tex.stackexchange.com/a/578367/63037 solved that problem, though.
-
1
-
Some graphics programs (such as GIMP) add a color profile by default, unless you explicitly request no profile. If you have an image with a color profile attached, it can be removed by ImageMagick or GraphicsMagick (option -strip). This also removes private metadata. Unless you have a very good reason not to strip images, do it.– user287367Commented Aug 23, 2023 at 17:38