GeneralPrevent images from resizing

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
rianquinn
Posts: 2
Joined: Wed Nov 19, 2008 11:27 pm

Prevent images from resizing

Post by rianquinn »

Every time I insert an image, the image is resized to fit the page. I'm using the following:

Code: Select all

\begin{center}
    \includegraphics{picture.png}
\end{center}
I do not want to specify the size of the image explicitly because the image sizes vary, and I have a lot of them. How do I tell LaTeX to just use the image's actual size?

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Prevent images from resizing

Post by localghost »

Try a certain scaling factor to resize the image manually.

Code: Select all

\begin{figure}[!ht]
  \centering
  \inludegraphics[scale=0.75]{picture}
  \caption{Image caption}\label{fig:picture}
\end{figure}
The factor comes from the relation between Pixel and Postscript Point.


Best regards and welcome to the board
Thorsten¹
rianquinn
Posts: 2
Joined: Wed Nov 19, 2008 11:27 pm

Re: Prevent images from resizing

Post by rianquinn »

Thanks very much.

What is the scale factor with regards to. Does it scale based on the image, or the paper. What I prefer is that it scales based on the picture. I take screenshots a lot, and I don't like it when LaTeX distorts the picture. I generally make sure the screenshot will fit on the document.
Post Reply