[pdftex] pdfTeX 1.00a: Problems with png images

Christian Leutloff leutloff at sundancer.oche.de
Sun Jun 1 17:13:37 CEST 2003

Sebastian Rahtz <sebastian.rahtz at computing-services.oxford.ac.uk> writes:

> On Mon, Feb 04, 2002 at 03:06:24PM +0100, Christian Leutloff wrote:
> > 
> > It fails on some PNG images with the error messages
> >  
> > libpng error: incorrect data check
> > Error: pdflatex: libpng: internal error
> ... 
> > What can I do to resolve the bug?
> give a URL for the PNG files and a test TeX harness, so that
> we can test whether it works with the latest pdftex sources
> (which have a new libpng) 

Here's a reasonalbe small TeX-Document. Reducing the amount of
commands of type \Bild (german word for figure) make the error
disapear. I hope that you get the error as it sometimes disapear
without any reason. During the preparation of the file above I've had
a file with fails 8 of 10 times - normally that can't be the case with
the excuse of hardware failures. But my hardware is running really

<------- test_png.tex

\usepackage{graphicx}% DAS Grafikpaket

  \renewcommand{\figurename}{Bild}% statt Abbildung
      % Scaling seems to be important with 1.0 it works


The used PNG graphics can be recieved from

Here are the sizes and names:

    541  test_png.tex
  17547  ym_10.png
  71136  ym_1.png
  71136  ym_2.png
  48223  ym_7.png
  28420  ym_9.png

<--------- The execution log
$ pdflatex test_png.tex 
This is pdfTeX, Version 3.14159-1.00a-pretest-20011114-ojmw (Web2C 7.3.7)
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, loaded.
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/graphics/pdftex.def))) (./test_png.aux)
loading : Context Support Macros / Missing
loading : Context Support Macros / PDF
) <ym_9.png, id=1, 1217.54875pt x 830.10126pt> <use ym_9.png>
<ym_10.png, id=2, 1269.74374pt x 463.7325pt> <use ym_10.png>
<ym_1.png, id=3, 1506.62875pt x 994.71625pt> <use ym_1.png>
<ym_7.png, id=4, 1505.625pt x 920.43875pt> <use ym_7.png>
<ym_2.png, id=5, 1506.62875pt x 994.71625pt> <use ym_2.png> [1{/usr/share/texmf
/dvips/config/pdftex.map} <./ym_9.png> <./ym_10.pnglibpng error: incorrect data check

Error: pdflatex: libpng: internal error


Dipl.-Ing. Christian Leutloff, Aachen, Germany  christian at leutloff.de
   http://www.oche.de/~leutloff/                leutloff at debian.org

            Debian GNU/Linux - http://www.de.debian.org/
                   taz muss sein. abomail at taz.de

More information about the pdftex mailing list