Inclusion of images in a LaTeX document does not alter them at all, whether clipping or not. As such, if you want smaller output files you'll either need to pre-process the images or post-process the PDF file. It's important to note that as clipping is purely an effect on the appearance of the PDF, you should not use it to 'hide' anything you don't want people to see. Anyone interested enough will be able to find it inside the PDF.
epstopdf
takes the bounding box of SmatExample.eps
:
%%BoundingBox: 14 14 723 1147
to create the PDF file. The image is moved to (0,0),
and a new media size is calculated:
/MediaBox [0 0 709 1133]
The coordinates of gv
/gsview
/... are based on the EPS version. For the PDF version and viewport
, the coordinates needs to be corrected by subtracting the old origin values of the bounding box. Actually the following example subtracts 13 in both cases:
\documentclass[compress,red,notes]{beamer}
\begin{document}
\frame{\frametitle{}
\begin{columns}
\begin{column}{0.5\textwidth}
\includegraphics[width=\textwidth, viewport=0 717 658 1133, clip]{SmatExample}
\\
\includegraphics[width=\textwidth, viewport=0 426 709 709, clip]{SmatExample}
\end{column}
\begin{column}{0.5\textwidth}
\includegraphics[width=\textwidth, viewport=0 0 709 422, clip]{SmatExample}
\end{column}
\end{columns}
}
\end{document}

\fbox
is helpful for a visual control of the viewports:
\documentclass[compress,red,notes]{beamer}
\begin{document}
\setlength{\fboxsep}{0pt}
\setlength{\fboxrule}{.1pt}
\frame{\frametitle{}
\begin{columns}
\begin{column}{0.5\textwidth}
\fbox{\includegraphics[width=\textwidth, viewport=0 717 658 1133, clip]{SmatExa
\\
\fbox{\includegraphics[width=\textwidth, viewport=0 426 709 709, clip]{SmatExam
\end{column}
\begin{column}{0.5\textwidth}
\fbox{\includegraphics[width=\textwidth, viewport=0 0 709 422, clip]{SmatExampl
\end{column}
\end{columns}
}
\end{document}

Best Answer
Since
\includegraphics
produces no depth, you can use the fact that\adjustbox
knows the\width
and the\height
of the image.