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
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
- Wrong relative path. TeX resolves relative image paths from the directory where the compiler runs (and its search paths), even inside files loaded with
\inputor\include. Run builds from the main file’s folder — LaTeX Cloud Studio compiles withlatexmk -cd, so paths resolve from the main file’s folder there — and writefigures/chart.png, not a local path likeC:/Users/.... - Letter-case mismatch. Linux file systems are case-sensitive:
Figure.PNGandfigure.pngare different files. Match the exact spelling and case in your project tree. - Unreadable file or wrong format (
XeLaTeX). UnderXeLaTeX,Unable to load picture or PDF filealso 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\graphicspathneeds its own pair of braces and a trailing forward slash (/).
graphicspath-setup.tex
Unknown graphics extension
main.log
main.log
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 BoundingBoxcan 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.pngbecomesmy_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.clsare capped at 2 MiB). - Standard compiles do not support packages that call external converters such as Inkscape (
svg/\includesvg). Convert.svgfiles to.pdfor.pngbefore 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.
Related pages
- Inserting images in LaTeX
- Figure and table placement issues
- Emergency stop: when a missing
.texfile stops the compile - Compiler and engine errors
