When I compile a large document with many images, this compilation is very slow. Exist any method that allow read ONLY (no rendering) the width and height of imagen and then simulate this image with a dummy rule. For example:
\newdimen\onlyWidth
\newdimen\onlyHeight
\setlenght{\onlyWidth}{\readOnlyWidth{\path\of\image.jpg}}
\setlenght{\onlyHeight}{\readOnlyHeight{\path\of\image.jpg}}
\begin{figure}[t]
\rule{\onlyWidth}{\onlyHeight}
\caption{any}
\end{figure}
\includegraphicsis a horizontal mode thing so would start a paragraph and get\parskipor\baselineskipspacing in addition to its natural height. You could use\ruleinstead of\vspacebut that is the same (but less efficient) as usingdraft. – David Carlisle Jun 28 '13 at 11:31