From this question, there is a way to include images with a hyperlink using the media9 package included in TeXLive. I am trying to include a GIF image (supported directly by the media9 package) in a beamer slide:
\begin{frame}
\frametitle{Motivation from photography}
\includemedia[
width=0.3\linewidth,keepaspectratio,
activate=onclick,
%addresource=config.xml, %embedded configuration
addresource=../../../../Documents/Horse_galloping.gif, %embedded image file
%flashvars={xml=config.xml},
%passcontext %show the player’s context menu
]{}{StrobeMediaPlayback.swf}
\end{frame}
I still have some trouble: my tex file compiled successfully but when I opened the pdf file (adobe reader; Foxit doesn't show the gif image) and clicked on the window, it showed the following error: "we are unable to connect to the content you've requested. We apologize for the inconvenience" (TypeError – Error#1009). Some background: I compiled with pdflatex-biber-pdflatex-pdflatex sequence. I called the media9 package by
\usepackage{media9}
Best Answer
I've been trying to use GIF images with media9 as well without success. In the end, I was able to include the animation using an MP4 video instead. Turning a GIF into an MP4 is easy, you can use kdenlive for this. Once you have the MP4 file, you can include the animation as follows:
Not the best solution, but it works. On the bright side, the MP4 file uses less space than the actual GIF, which is a plus.