# Latex does not read figure file [duplicate]

Possible Duplicate:
Why does the image not appear?

I have a LaTeX file, which I compile with pdflatex and I have put some figure with the command

\resizebox{6.5cm}{!}{\includegraphics{DrifterPicture/Flux_Total.png}}

pdflatex did not report any error at compilation but if the file is absent then it reports an error in the log.

The strange thing is that the figure is not shown in the resulting .pdf file. Instead the path to the figure is shown. I have checked that the figure file is ok and that the problem persist if instead of .png I use .pdf.

-

## marked as duplicate by Joseph Wright♦Dec 6 '11 at 8:05

Don't use the draft option. (Or use the final option for graphicx or the graphics itself). – Ulrike Fischer Dec 5 '11 at 16:37
Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. Also, you can use backticks ` to mark your inline code as I did in my edit. You can also highlight the code and click the "code" button (with "{}" on it), or hit Ctrl + K. – Torbjørn T. Dec 5 '11 at 16:39
Any reason for using \resizebox instead of \includegraphics[width=6.5cm]{...}? – Torbjørn T. Dec 5 '11 at 16:41

Using the draft option for either \documentclass[draft]{...} or \usepackage[draft]{graphicx} will cause printing of a boxed filename (of appropriate size).

From the graphicx package documentation (p 8):

draft suppress all the ‘special’ features. In particular graphics ﬁles are not included (but they are still read for size info) just the filename is printed in a box of the correct size.

Removing it should display the image, or using the final option:

\usepackage[final]{graphicx}

final The opposite of draft. Useful to over-ride a global draft option speciﬁed in the \documentclass command.

-