1

Possible Duplicate:
Image from \includegraphics showing in wrong image size

Image is not showing full width and height, it is showing 100% as single dot, when you zooming view this picture some what bigger. I also mentioned the width and height for the picture is not showing it correctly. Its always showing like this. What we do this in LaTeX? Please look at the two images.

\documentclass{article}
\usepackage{amssymb}   
\usepackage{graphicx}
\usepackage{float} 
\begin{document} 
Text
\begin{figure}[ht]
\centering
\includegraphics[scale=0.5]{pic3}
\caption{caption text}
\label{fig:image}
\end{figure}
\end{document}

enter image description here

enter image description here

1
  • What kind of image file is pic3? Are you compiling with latex or pdflatex? Jul 25, 2011 at 8:13

1 Answer 1

5

Usually \includegraphics is used as \includegraphics[width=0.8\linewidth]{pic3}. I am not sure that LaTeX is able to get a correct size of picture for any format. E.g., jpeg image has no 'size' in dimension units at all.

3
  • 3
    Indeed, setting a width explicitly should help. Normally pdflatex should not have any issue with JPG and PNG images, but sometimes the resolution meta-data in such files is incorrect or not suitable. Jul 25, 2011 at 8:16
  • working for me this url
    – user6830
    Aug 24, 2011 at 12:39

Not the answer you're looking for? Browse other questions tagged .