## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ Placement? Picture leaves a blank area

Information and discussion about graphics, figures & tables in LaTeX documents.
DavidM
Posts: 20
Joined: Wed Jul 01, 2009 9:52 pm

### Placement? Picture leaves a blank area

Hi everyone,

I am using the following to insert pictures in my file:
\begin{figure}   \begin{center}     \includegraphics[width=0.50\textwidth, angle = 0]{Name.jpg}     \caption{Text.}\label{Figure x}   \end{center}\end{figure}

The file is 22 pages, and most of the 12 pictures are working well, but two of them are placed at about 1/4th-1/2 of the page, leaving the space above it blank. This looks really strange, and I am wondering what the cause might be? Some notes:

- Most pictures in this file are square graphs, the pictures that cause a problem are rectangular, and much more wide than high
- Every picture in the file gives this error:
"cannot determine size of graphic {no bounding box}"
I just press enter, and for most of the pictures it works fine, but perhaps this has something to do with it?

Help is much appreciated! Thanks,

David

localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm
DavidM wrote:[…] Every picture in the file gives this error:
"cannot determine size of graphic {no bounding box}" […]

You obviously compiled with latex. It doesn't accept the JPG format for graphics files. Compile with pdflatex instead.

Best regards
Thorsten
LaTeX Community Moderator

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

DavidM
Posts: 20
Joined: Wed Jul 01, 2009 9:52 pm
Wow, that worked really good! Thanks so much!

Regards,

David