I would like to have a single slide which has only one image on it. No navigation, no border. Nothing, only the image. If that means that the PDF page has a different size than other pages, that is fine for me.
Currently, my best try looks like this:
Minimal example
I tried to make a \framedgraphiconly command:
\documentclass[hyperref={pdfpagelabels=false},usepdftitle=false]{beamer}
\usetheme{Frankfurt} % see http://deic.uab.es/~iblanes/beamer_gallery/index_by_theme.html as fallback
\usecolortheme{beaver}
\usefonttheme{professionalfonts}
\usepackage{hyperref}
\usepackage[utf8]{inputenc} % this is needed for german umlauts
\usepackage[english]{babel} % this is needed for german umlauts
\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
\usepackage{tikz}
\newcommand {\framedgraphiconly}[1] {
\setbeamertemplate{navigation symbols}{}
\begin{frame}[plain]
\begin{center}
\includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{#1}
\end{center}
%\begin{tikzpicture}[remember picture,overlay]
%\node[at=(current page.center)] {
%\includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{#1}
%};
%\end{tikzpicture}
\end{frame}
}
\beamertemplatenavigationsymbolsempty
% Begin:Move navigation from top to bottom
\setbeamertemplate{navigation symbols}{}
\makeatletter
\setbeamertemplate{footline}
{%
\pgfuseshading{beamer@barshade}%
\ifbeamer@sb@subsection%
\vskip-9.75ex%
\else%
\vskip-7ex%
\fi%
\begin{beamercolorbox}[ignorebg,ht=2.25ex,dp=3.75ex]{section in head/foot}
\insertnavigation{\paperwidth}
\end{beamercolorbox}%
\ifbeamer@sb@subsection%
\begin{beamercolorbox}[ignorebg,ht=2.125ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
\usebeamerfont{subsection in head/foot}\insertsubsectionhead
\end{beamercolorbox}%
\fi%
}%
\setbeamertemplate{headline}{%
}
\makeatother
% End:Move navigation from top to bottom
\begin{document}
\title{Art in Machine Learning}
\subtitle{\href{https://github.com/MartinThoma/}{github.com/MartinThoma/}}
\author{Martin Thoma}
\date{15. Januar 2016}
\subject{Machine Learning}
\frame{\titlepage}
\section{Examples}
\subsection{Examples}
\framedgraphiconly{0099.jpg}
\section{ML-Basics}
\subsection{ML-Basics}
\begin{frame}{Was ist Machine Learning?}
\begin{block}{Definition by Tom Mitchell: ML}
A computer program is said to learn from \textbf{experience} $E$ with
respect to some class of \textbf{tasks} $T$ and \textbf{performance
measure} $P$, if its performance at tasks in $T$, as measured by $P$,
improves with experience $E$.
\end{block}
\end{frame}
\end{document}
If you want the image, it is on https://github.com/MartinThoma/LaTeX-examples/tree/master/presentations/ImageOnly
Question
How can I get a PDF page of the size of an image exactly? In my example: How can I get rid of the white borders without changing the image / the aspect ratio how the image appears? (And whe is there white space on two sides left?)



centerenvironment adds vertical space so you should get rid of that first – David Carlisle Jan 10 '16 at 22:03width=\paperwidth,height=\paperheight,keepaspectratiowill leave a border on vertical or horizontal edges unless the image has the same aspect ratio as the page. – David Carlisle Jan 10 '16 at 22:04centerenvironment removed one white border. Should I update the image / text, because that was rather not my main question? – Martin Thoma Jan 10 '16 at 22:06centerenvironment (which adds space at the top)? – Martin Thoma Jan 11 '16 at 08:46\centering(I think there is a standard answer on site about that) – David Carlisle Jan 11 '16 at 10:13%can be an exercise akin to the labours of Sisyphus. – Andrew Kepert Jan 12 '16 at 07:12\shipoutboxes as pages, if you want to get into low-level TeX hackery.incgraphlooks like a better solution to the current question though. Another nice-looking package that is new to me. 8-) – Andrew Kepert Jan 12 '16 at 07:16