I am using the animate package to include a series of images into a PDF (like a small movie), which usually works fine, however, now I am running into an
! Dimension too large.
<recently read> \calc@B
l.5 ...\columnwidth]{4}{images/ani-}{00000}{00023}
error, which I cannot figure out or work around. The images are JPEG files, each 130×326 pixels large. The width and height given in the document should make them fit on the page neatly.
Here is the latex input file:
\documentclass[8pt]{beamer}
\usepackage{animate}
\begin{document}
\section{Image Slides}
\animategraphics[controls = false, autoplay, loop, height=0.18\columnwidth]{4}{images/ani-}{00000}{00023}
\end{document}
And here you can download the complete package with minimal latex file and the image frames (as JPEG):
http://www.vivoquant.com/files/remove/Dimension-too-large.tgz
I of course already googled 'Dimension too large' and tried many of the workaround explained there, however, none worked for or applied to my case.
Any help is appreciated.
Christian
Best Answer
We have found the issue. The JPEG images were created with a new ImageMagick/libjpeg version, that apparently does not set the resolution/units in the JPEG Exif header properly:
Working JPEG files show: Resolution: 72x72 Print size: 8.88889x6.66667 Units: PixelsPerInch
which can be achieved by explicity setting the density:
Hope this helps other people trying to use the awesome animate package.