Skip to main content
Most LaTeX image errors come from a graphics driver mismatch or missing EPS bounding box (no BoundingBox), a wrong relative path or letter case (File not found), or an unsupported format such as .svg or .webp. Write image paths relative to the directory TeX runs in (the main file’s folder under latexmk -cd or in LaTeX Cloud Studio), or jump straight to image paths and File not found.

Cannot determine size of graphic ... (no BoundingBox)

main.log
Cause: graphicx failed to read image dimensions. This happens when LaTeX runs in DVI mode (latex) or your preamble forces a PostScript driver such as \usepackage[dvips]{graphicx} on a PNG, JPEG, or PDF file, or when you include an EPS file that lacks a valid %%BoundingBox header (which triggers no BoundingBox even under XeLaTeX with plain \usepackage{graphicx}). Fix: For PNG, JPEG, or PDF images, compile with pdflatex, xelatex, or lualatex and load \usepackage{graphicx} without any driver option (dvips, dvipdfm, or pdftex). For EPS files, check that the file has a valid %%BoundingBox header or re-export it as a valid PDF.

Failing example with [dvips]

dvips-bbox-error.tex

Fixed version

image-fixed.tex
Ready to use this syntax? Continue in the browser editor when you want to adapt the example in a real project.Open LaTeX Cloud Studio

File `figure.png' not found

Depending on whether you include the file extension and which engine you run, TeX Live 2026 prints one of these messages when it cannot locate or open the image:
pdflatex.log
pdflatex-noext.log
xelatex.log
Causes and fixes:
  • Wrong relative path. TeX resolves relative image paths from the directory where the compiler runs (and its search paths), even inside files loaded with \input or \include. Run builds from the main file’s folder — LaTeX Cloud Studio compiles with latexmk -cd, so paths resolve from the main file’s folder there — and write figures/chart.png, not a local path like C:/Users/....
  • Letter-case mismatch. Linux file systems are case-sensitive: Figure.PNG and figure.png are different files. Match the exact spelling and case in your project tree.
  • Unreadable file or wrong format (XeLaTeX). Under XeLaTeX, Unable to load picture or PDF file also appears when the path exists but the file is corrupted or does not match its extension (for example, a WebP image renamed to .png). Check the actual image format.
  • Malformed \graphicspath. Every directory inside \graphicspath needs its own pair of braces and a trailing forward slash (/).
graphicspath-setup.tex

Unknown graphics extension

main.log
main.log
Cause: Under pdfLaTeX, XeLaTeX, and LuaLaTeX, graphicx supports .pdf, .png, and .jpg/.jpeg directly. Formats such as .svg, .webp, .gif, and .heic are not handled by \includegraphics. Fix: Export vector .svg files to .pdf (preserving sharp lines and text), and convert .webp, .gif, or .heic images to .png or .jpg before referencing them.

In LaTeX Cloud Studio

  • LaTeX Cloud Studio produces PDF output with PDFLaTeX, XeLaTeX (via XDV-to-PDF conversion), or LuaLaTeX. Even so, no BoundingBox can still appear if your preamble passes a conflicting driver like [dvips] or includes an EPS file missing bounding-box metadata.
  • When you upload a file with spaces or LaTeX-unsafe characters, the uploader renames it automatically (for example my file.png becomes my_file.png). Use the sanitized name shown in the file tree.
  • Uploader limits cap accepted binary files at 50 MiB per file (editable text files such as .tex, .sty, and .cls are capped at 2 MiB).
  • Standard compiles do not support packages that call external converters such as Inkscape (svg / \includesvg). Convert .svg files to .pdf or .png before including them. Where the uploader offers conversion, its prompt converts unsupported image formats such as .svg, .webp, .gif, or .heic, with a 20 MiB input limit.
Need a working project with figures already configured? Start from the Lab Report template in LaTeX Cloud Studio and upload your images into the project tree.