Graphics, Figures & TablesResized images

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jlazkano
Posts: 9
Joined: Sat Apr 10, 2010 9:43 pm

Resized images

Post by jlazkano »

Hello, I want to add some images to a Latex document, the problem is that they use to resize and get pixeled.

This is the code:

Code: Select all

\begin{figure}[h]
\begin{center}
  \includegraphics{EJ1SIS}\\ %width=2.5583in
\end{center}
\caption{Esquema de transmisi\'on de datos con un cifrador-aleatorizador}
\end{figure}
I attached the original image and the output.

Can you help with this? I don't understand way it resize automatically.

Thanks for all!
Attachments
output.png
output.png (23.8 KiB) Viewed 1635 times
EJ1SIS.JPG
EJ1SIS.JPG (8.35 KiB) Viewed 1635 times
Last edited by jlazkano on Sun Apr 11, 2010 8:33 pm, edited 1 time in total.

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

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

Resized images

Post by localghost »

Scale the image to three quarters of its original size as shown below.

Code: Select all

\documentclass[11pt,a4paper,spanish]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[font=small,labelfont=bf,tableposition=top]{caption}
\usepackage{graphicx}

\begin{document}
  \begin{figure}[!ht]
    \centering
    \includegraphics[scale=0.75]{EJ1SIS}
    \caption{Esquema de transmisión de datos con un cifrador-aleatorizador}
    \label{fig:ej1sis}
  \end{figure}
\end{document}
The reason for that is the relation between postscript point and pixel. See forum search for details.

As an alternative you can draw this picture with pgf/tikZ or PSTricks.

If this solves the issue, please mark the topic as solved by editing the initial post and choosing the green checkmark from the icon list.


Best regards
Thorsten
jlazkano
Posts: 9
Joined: Sat Apr 10, 2010 9:43 pm

Re: Resized images

Post by jlazkano »

Thanks!!! It solve my problem!

Thanks and regards.
Post Reply