Adobe Reader: unwanted color change

If you include a picture within a pdf document and view it with the Adobe Reader you may notice a change of color under certain circumstances. Let’s test this png file:

pdf color test original

This short example will be enough to produce a pdf by pdflatex:


You may compile by yourself or look at the pdf output. Here’s a screenshot of the Adobe Reader:

pdf color test Adobe Reader

Nice blue color, but not the original one. Compare this color with a screenshot of the open source pdf viewer Evince:

pdf color test Evince

Because most people use the freely available Adobe Reader it may be necessary to fix this issue. I found a solution by converting the color mode from RGB to an indexed palette using the freely available open source software GIMP. Here is the changed png file, and here the pdf file, finally the screenshot:

pdf color test Adobe Reader

Using GIMP it’s possible to automate the conversion by GIMP’s batch mode using the procedure gimp-image-convert-indexed.

This topic was discussed in the LaTeX Community Forum.

14. July 2008 by stefan
Categories: Uncategorized | 2 comments

Comments (2)

  1. The proplem occurs to me when png files are 32 bit or 64 bit rgba. Converting the png file to 24 bit rgb fixes the issue:

    mogrify -format png24 *png

  2. Color conversion is easier done with ImageMagick’s “convert” command:

    convert filename +dither -colors 256 filename.png

Leave a Reply

Required fields are marked *