# Including GIF image in pdflatex document

I'm trying to include GIF image in my LaTeX document. To my understanding this is possible. I'm using pdflatex and I get the following message:

ERROR: LaTeX Error: Unknown graphics extension: .gif.


And the figure I try is:

\begin{figure}
\centering
\subfloat[]{\label{fig:a}}{\includegraphics[width=0.45\textwidth]{Safinya_lamelar.png}}
\subfloat[]{\label{fig:b}}{\includegraphics[width=0.45\textwidth]{Safinya_hex.png}}
\subfloat[]{\label{fig:c}}{\includegraphics[width=0.45\textwidth]{Farago_lamelar.gif}}
\subfloat[]{\label{fig:d}}{\includegraphics[width=0.45\textwidth]{Farago_hex.gif}}
\caption{Lipoplexes}
\label{gene.fig1}
\end{figure}


What am I doing wrong?

-
Where do you get your understanding from? It's wrong. – Martin Schröder Nov 15 '11 at 7:33
@MartinSchröder: In the above linked page it says '... and pdflatex will look for "figure.pdf", "figure.gif", or "figure.jpg".' Should be .png instead of .gif. – Martin Scharrer Nov 15 '11 at 7:57
@MartinScharrer: Well, that page is some years old. :-> But GIF was always wrong. – Martin Schröder Nov 15 '11 at 13:29
@MartinSchröder: gif was always wrong (as you say -- it was still covered by that stupid patent when pdftex appeared), but tiff (extension tif) was once valid. perhaps the site author was simply confused rather than just "plain wrong"? – wasteofspace Jun 14 '12 at 15:02

No, pdftex does not support GIF. Your online source is incorrect. See the pdftex manual, which is the ultimate guide here:
The error you get is because there is no graphics rule set-up for .gif. You could define your own using \DeclareGraphicsRule, but there is no driver support for it, so that won't help you.