[Tex/LaTex] Gif image in LaTex Beamer

animateanimationsgifgraphics

I am trying to create an animation from given *.png files using the following code.

    \documentclass{beamer}
    \usepackage{animate}
    \begin{document}
    \animategraphics[loop,autoplay]{6}{WT_t}{001}{143}

    \end{document}

The code runs perfectly and does not give any error but I do not see the image in generated pdf file. Can anyone please help me out?

  1. I have a gif file too, is it possible to embed this image directly into my beamer presentation?

Best Answer

\animategraphics understands the same resizing, scaling and cropping options as package graphicx's \includegraphics.

Thus, once you manage to rescale and include a single image file of the sequence to your liking using \includegraphics, you can readily re-use those settings with \animategraphics, e.g.

\animategraphics[width=\linewidth,loop,autoplay]{6}‌​{WT_t}{001}{143}

(2) And no, there is no direct Gif support in PDF. The usual procedure to convert an existing animated Gif into a numbered PNG sequence is:

convert -coalesce something.gif something.png

Option -coalesce of ImageMagicks' convert command undoes a possible optimization of the Gif file to be converted.

Related Question