[pdftex] graphic{s,x} PNG + pdflatex bug

Nico Schlömer nico.schloemer at gmail.com
Thu May 6 16:31:58 CEST 2010


Hi all,

I experienced a weird bug using \includegraphics of the graphicx
package with pdflatex 1.40.10.

I try to load the attached PNG file, and unlike with other PNG files,
pdflatex would just bail out with

==================== *snip* ====================
[...]
[Loading MPS to PDF converter (version 2006.09.02).]
)
! Dimension too large.
<argument> \wd \@tempboxa
l.7 \includegraphics{img1.png}
?
==================== *snap* ====================

David Carlisle, maintainer of graphicx, suggests that may be a bug in
pdflatex -- What do you reckon?

Cheers,
Nico




---------- Forwarded message ----------
From: David Carlisle <d.p.carlisle at googlemail.com>
Date: Thu, May 6, 2010 at 4:19 PM
Subject: Re: graphic{s,x} PNG bug
To: Nico Schlömer <nico.schloemer at gmail.com>


the error message is a bit odd, but "classic" tex  wouldn't be able to
read a png file to determine its size so you should have an error
about an unknown size. is this pdftex (and if so what version?)
perhaps it is passing some odd data back to the macro layer.

you may be best to ask on the pdftex list pdftex at tug.org where the
current maintainers of pdftex and the latex support files for pdf
(pdftex.def) can be found.

David

On 6 May 2010 13:48, Nico Schlömer <nico.schloemer at gmail.com> wrote:
> Hi David,
>
> I think I bumped into a bug with the graphic{s,x} packages. Trying the
> \includegraphics the attached PNG,
>
> ==================== *snip* ====================
> \documentclass{article}
> \usepackage{graphicx}
> \begin{document}
> \includegraphics{img1.png}
> \end{document}
> ==================== *snap* ====================
>
>  would fail with
>
> ==================== *snip* ====================
> [...]
> [Loading MPS to PDF converter (version 2006.09.02).]
> )
> ! Dimension too large.
> <argument> \wd \@tempboxa
>
> l.7 \includegraphics{img1.png}
>
> ?
> ==================== *snap* ====================
>
> Other PNGs work fine, and there seems to be nothing wrong with img1.png either.
>
> Cheers,
> Nico
>



--
http://dpcarlisle.blogspot.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: img1.png
Type: image/png
Size: 92868 bytes
Desc: not available
URL: <http://tug.org/pipermail/pdftex/attachments/20100506/135484dd/attachment-0001.png>


More information about the pdftex mailing list