## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ Inclusion of PNG Graphics File fails Topic is solved

Information and discussion about graphics, figures & tables in LaTeX documents.
Sekonda
Posts: 2
Joined: Sat Dec 08, 2012 2:36 pm

### Inclusion of PNG Graphics File fails

Hey guys,

I'm very new to LaTeX and I am using TeXnicCenter, anyway I'm writing my dissertation and tried to include an image using:
\begin{figure}[H]   \centering   \includegraphics{../Pictures/DiracSea.png}   \label{fig:DiracSea}\end{figure}

and I have loaded the graphicx package, but I keep getting this error 'Cannot determine the size of the image' and something about 'No bounding box'. Basically my image is placed at the top of the page (where I want it) but the top of the image is cut off for some reason (presumably because the bounding box hasn't been defined).

How do I solve this? And if so, the most simplest way!

Thanks guys,
SK

Tags:

localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm
If you want to include PNG files, you will have to compile with PDFLaTeX and not with LaTeX. A corresponding build profile (LaTeX→PDF) should have been generated by TeXnicCenter (TXC).

Best regards and welcome to the board
Thorsten
LaTeX Community Moderator

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

Sekonda
Posts: 2
Joined: Sat Dec 08, 2012 2:36 pm
Cheers!