TeXpad

LaTeX error: File `figure.png' not found (\includegraphics)

\includegraphics{name} looks for the image relative to the main .tex file (and any folders listed in \graphicspath). If the exact name is not there, pdfTeX stops.

! Package pdftex.def Error: File `figure.png' not found: using draft setting.

Try it: this example has the error

Edit the example using the steps below, then press Compile. What pdfTeX printed for it:

! Package pdftex.def Error: File `figure.png' not found: using draft setting.

See the pdftex.def package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.4 \includegraphics[width=3cm]{figure.png}
or paste your own document

Ready. Press Compile (or Ctrl/Cmd + Enter).

Open in the full editor →

Common causes

How to fix it

  1. Use the path relative to the main file: \includegraphics{figures/plot.png}, or set \graphicspath{{figures/}}.
  2. Match the file name exactly, including case and extension.
  3. In TeXpad, drop the image into the Figures panel; the Overleaf import brings figures along and resolves \graphicspath.
  4. Convert EPS or SVG to PDF or PNG for pdfLaTeX.

The fixed example

\documentclass{article}
\usepackage{graphicx}
\begin{document}
% upload figure.png, then: \includegraphics[width=3cm]{figure.png}
\fbox{\parbox[c][2cm][c]{3cm}{\centering figure.png goes here}}
\end{document}

Related errors