import .png pic into latex, classic error

The error below is the classic error when you work with png file instead of eps.

Cannot determine size of graphic in figuras/picture.png (noBoundingBox). …

To avoid this issue, you have to manually set the picture bounds. Check the picture size in some Image viewer and include the image as follows:

\begin{figure}[htb]
\centering
\includegraphics[scale=0.5,bb=0 0 385 567]{figuras/picture.png}
\caption{Some description about the picture}
\label{picture-label}
\end{figure}

The above code includes an image of 386 x 567 pixels. You can also change the scale to reduce or increase the image size.

This is retrieved from internet.

Advertisements

About cc112358

I love the world
This entry was posted in latex, Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s