The following example works in so far as it shows the image in the source latex file and disregards everything else. Is there some way of performing the same task but also list information about each image such as its the dimensions, file size and filename below each image? Only the preview should have that.
I am hoping that not only can I accomplish that but that I don't have to manually type in the file size and other info myself -- although if there is no way to grab the info automatically then the next best would be to add the info manually. Either way, I would like to know how to accomplish this.
\documentclass{article}
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage[active,tightpage,pdflatex,graphics,showlabels]{preview}
\begin{document}
\lipsum[1]
\begin{center}
\includegraphics{elephant}
\end{center}
\lipsum[1]
\end{document}
Result (the grey part around the image was not part of the output but is an artifact of my capturing process so that part can be disregarded):

(Creative Commons info on elephant image available here .)
