Generalimporting .jpg pictures

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
quodlibet
Posts: 3
Joined: Fri May 09, 2008 4:34 pm

importing .jpg pictures

Post by quodlibet »

hello!

I'm trying to import a .jpg picture in LaTex.
This is what I'm doing:

I included \usepackage{graphicx} in the preamble, then

\begin{figure}[h]
\centering
\includegraphics[scale=1.0]{PIC-NAME}
\label{fig:thesis-cover-pic}
\end{figure}

but LaTeX gives me the following error: `Cannot determine size of graphics in PIC-NAME.jpg (no BoundingBox).

I can't sort the problem out. :oops:
Can someone help me out with this, please?

Thank you very much! :)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: importing .jpg pictures

Post by Stefan Kottwitz »

Hi quodlibet,

to import jpg pictures pdflatex is necessary. Compile with pdflatex instead of latex, use the output profile LaTeX => PDF, not LaTeX => DVI or LaTeX => PS => PDF.

Stefan
LaTeX.org admin
Post Reply