LaTeX error "File `imgae' not found": cause and fix
\includegraphics found no image with this name. When the name has no extension, pdfLaTeX tries .pdf, .png, .jpg, .mps, .jpeg, .jbig2 and .jb2, and the log lists them below the message. When you write a supported extension yourself, the message reads "not found: using draft setting" instead.
Why it happens
- The file name or the folder has a typo.
- The image is not part of the project, for example because it was never copied into the project folder.
- The path starts at the wrong folder. LaTeX reads it from the folder of the main document.
\graphicspathis written with one pair of braces.\graphicspath{images}does not work; each folder needs its own braces.- The file exists but has a format pdfLaTeX does not read, such as
.svg. Without an extension in the command, LaTeX only looks for the formats it supports.
How to fix it
- Compare the name in the message with the file name, letter by letter.
- Write the path from the main document:
\includegraphics{images/plot}for the fileimages/plot.png. - Set the image folder once in the preamble with
\graphicspath{{images/}}, with double braces and a slash at the end. See Set the image folder in LaTeX. - Convert the image to PDF, PNG or JPG.
A document that produces the message
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics[width=4cm]{imgae}
\end{document}The corrected document
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics[width=4cm]{image}
\end{document}Both documents were compiled with pdfLaTeX from TeX Live 2023. The first produces the message, the second compiles without an error.
Finding the line in the editor
The editor lists every error and warning of a compile run with file and line. Select an entry and the cursor jumps to that line. See Error list with jump to the line.
Related pages
- How-to Insert an image in LaTeX
- How-to Set the image folder in LaTeX
- Error Unknown graphics extension: .svg
- Package
graphicx