0

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?

2
  • Is it a transparent png? Is the page background involved?
    – user287367
    Commented 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.
    – regnirpsj
    Commented Aug 23, 2023 at 1:00

1 Answer 1

0

so, turns out that color profiles may wreak some havoc here; following https://tex.stackexchange.com/a/578367/63037 solved that problem, though.

2
  • 1
    So it seems, the question is a duplicate …
    – cabohah
    Commented Aug 23, 2023 at 8:38
  • 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.
    – user287367
    Commented Aug 23, 2023 at 17:38

Not the answer you're looking for? Browse other questions tagged .