# Image on full slide in beamer package

I would like to make a slide of only one image without any borders or any other beamer specific element.

I tried :

\begin{frame}[plain]
\includegraphics[keepaspectratio=true,width=1\paperwidth]{kernel-panic.png}
\end{frame}


But I still get a border on the left, top and bottom.

Later edit: width=1.2\paperwidth seems to remove top and bottom borders. I still have a left border and some navigation elements on bottom right.

-

## 4 Answers

This works:

\documentclass{beamer}
\title{test of full size graphic}
\usepackage{tikz}
\usetheme{AnnArbor}

\begin{document}

\begin{frame}
\maketitle
Notice the fancy presentation theme.
\end{frame}

{ % all template changes are local to this group.
\setbeamertemplate{navigation symbols}{}
\begin{frame}[plain]
\begin{tikzpicture}[remember picture,overlay]
\node[at=(current page.center)] {
\includegraphics[width=\paperwidth]{yourimage}
};
\end{tikzpicture}
\end{frame}
}

\begin{frame}
symbols should be back now
\end{frame}

\end{document}


You have to run beamer twice to get the image centered in the right place. But if you have any other aux-file tricks (e.g., table of contents) you need to do that anyway.

If you're not already using tikz, you can save your image as a pdf and then use \includepdf (part of the pdfpages package). This will get you into trouble if you want to print your slides as an article or handout, though.

-
 Thanks it did the trick. – Alexandru Oct 10 '10 at 18:20 Note that this does not work with \multiinclude – Tim van Dalen Apr 2 '12 at 14:08 @TimvanDalen, it did for me. Replace \includegraphics... with \multiinclude[graphics={height=\paperheight}]{yourimage}. – fgregg May 30 '12 at 3:20

The following strategy worked, but not when I had \mode* in operation.

{
\usebackgroundtemplate{\includegraphics[width=\paperwidth]{figure}}
\begin{frame}[plain]
\end{frame}
}


The following seems to work when I have \mode* operating in the document.

\mode<all>
{
\usebackgroundtemplate{\includegraphics[width=\paperwidth]{figure}}
\begin{frame}[plain]
\end{frame}
}
\mode<all>{\usebackgroundtemplate{}}
\mode*

-
 You can simplify things by adding another group around your frame. Then you don't have to explicitly shut off the backgroundtemplate – Matthew Leingang Oct 11 '10 at 16:45 @Matthew Okay. Thanks. – Jeromy Anglim Oct 12 '10 at 1:13

Is the aspect ratio of your image the same as that of your slides? If not then you'll always get either borders or clipping of the image if you include it without changing its aspect ratio.

You can put \hspace{-1.2cm} before your \includegraphics command to place the image 1.2 cm to the left of where it would be by default. Playing with the distance should let you place it right on the edge of the slide.

-

I have been using something like this:

\newcommand<>{\fullsizegraphic}[1]{
\begin{textblock*}{0cm}(-1cm,-3.78cm)
\includegraphics[width=\paperwidth]{#1}
\end{textblock*}
}


in the preamble and then just:

\begin{frame}
\fullsizegraphic{monogram.jpg}
\end{frame}


But I am not totally satisfied - I still have to fiddle with the numbers to get it right.

Unfortunately I have forgotten where I stole the fullsizegraphic-snippet.

-
 Works nice, still \usepackage{textpos} is needed. – mbq May 16 at 14:10