[Pkg-gmagick-im-team] Bug#763799: jpegs created by imagemagick cannot be used by latex anymore

Vincent Fourmond fourmond at gmail.com
Fri Oct 3 11:53:39 UTC 2014


  Hello,

On Thu, Oct 2, 2014 at 8:46 PM, Klaus Ethgen <Klaus at ethgen.de> wrote:
> The current version of imagemagick (and its library used by gkrellshoot)
> creates jpeg images that cannot be used in pdflatex with graphicx
> anymore.
>
> There is already a bugreport in redhats bugzilla[0].
>
> [0] https://bugzilla.redhat.com/show_bug.cgi?id=1086715
>
> To have the informations also in this bug, this is the result I have
> seen (Only relevant part):
> - --- input.tex
> ...
> \usepackage{graphicx}
> ...
> \includegraphics{gkrellShoot_xxxx}
> ...
> - ---
>
> - --- Output
> ...
> pdfTeX warning: pdflatex: arithmetic: number too big
>
>
> pdfTeX warning: pdflatex: arithmetic: number too big
> <gkrellShoot_xxxx.jpg, id=165, --32768.0pt x 0.0pt>
> <use gkrellShoot_xxxx.jpg>
> Overfull \hbox (67.0553pt too wide) has occurred while \output is active
>  [][]  \T1/cmss/m/sc/6 ([])

  The reason is very simple: recent versions of imagemagick write
stupid resolution information to the JPEG files (such as 1 dpi), so
you end up with very very large image (several meters large !), and
latex just gives up.

  While I agree this is clearly a problem with imagemagick, it is also
a bug in LaTeX.

  A simple workaround is the following: add a -density 75 option
before the output in convert:

  convert bad_jpeg.jpeg -density 75 latex_friendly_jpeg.jpeg

  Cheers,

      Vincent



More information about the Pkg-gmagick-im-team mailing list