Possible Duplicate:
MikTex error for PNG images when trying to produce DVI
I have the following line in my tex file:
\includegraphics[width=1.0\textwidth]{pic.png}
There is no error with pdflatex, but When I try to build it by latex command I get this error:
Cannot determine size of graphic pic.png (no Bounding box).
How can I fix this error?
Update:
I could fix(?) it by inserting two more values(natwidth and natheight) to `includegraphics'. Now I can build my file, however I'm not sure that it is the right way to do it.
latexdoes not support PNG, JPG or PDF images. Only EPS. – Martin Scharrer Jul 03 '11 at 08:58latex -shell-escapewill callextractbbon the fly to get bounding boxes of these images. And Oberdiek'sbmpsizepackage helps dvipdfm(x) determine bounding boxes of PNG and JPG images. – Leo Liu Jul 03 '11 at 15:10latexdoesn't support these format, i.e. is unable to extract their sizes by itself. – Martin Scharrer Jul 03 '11 at 15:12