I wish to include an .gif
animation in my latex beamer presentation. Based on my reading from various sources, including this website, what I understood was that I need to convert .gif
into a series of .jpg
images. I have converted .gif
into 10 .jpg
images titled from foo-1.jpg
to foo-10.jpg
. I have put all these images in the same folder where I have my template file and other images which are used subsequently. Next, I am using the below commands to include it as an animation
\begin{frame}
\animategraphics{12}{foo-}{0}{10}
\end{frame}
On doing this, I get no error, but the slide is shown as given in the attached image.
As it can be clearly seen, the animation does not fit on the slide, nor is it showing a set of moving images like a .gif
file. What shall I do to get the animation nicely on the slide. I am ready to share all the 10 images if needed as a MWE, but please help me to overcome this problem.
\animategraphics[loop,controls,width=\linewidth]{12}{foo-}{0}{10}
or whatever width you want