Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm including a jpg figure in my LaTeX document like this:

\begin{figure}[htbp]\centering
    % fbox here only for illustrative purposes
    \fbox{\includegraphics[width=\textwidth,keepaspectratio]{Pictures/PoolofBethesda-CarlBloch}}
%   \includegraphics[width=\textwidth,keepaspectratio]{Pictures/LesNocesdeCana-PaoloVeronese}
    \caption{\emph{Healing at the Pool of Bethesda} (1883) by Carl Bloch.}
    \label{fig:Bethesda}
\end{figure}

However, the picture is not being properly scaled. I want the picture to be as wide as the text on the page with the aspectratio kept the same. I get this instead; you can see the box where the image should be:

Example of image not being scaled properly

If I simply replace the image with a different image (as shown in the commented line above) everything works as expected.

Why isn't my image being scaled properly? Am I missing something obvious?

The original image is this:

Original image

PS. I'm using the graphicx package with no options.

share|improve this question
2  
Probably the graphic has some margins. Put \fbox around the image to see it. Or remove the keepaspectration key. –  Ulrike Fischer Jul 2 at 12:03
1  
It might be useful for us to see that image, or as Ulrike suggests, wrap it in \fbox{...} in order to visually see where the edges of the image is. BTW: the keepaspectratio should not be necessary when you are only adding one scaling parameter. Should not do any harm either. –  daleif Jul 2 at 12:12
2  
It is also possible that the graphic contains faulty resolution information (or that they are missing). –  Ulrike Fischer Jul 2 at 12:14
    
The second image works fine for me. But I doubt that it "the original image", tex.sx postprocesses images. You should put the image in a zip-file somewhere for download. –  Ulrike Fischer Jul 2 at 12:25
    
Try downloading from here: dropbox.com/s/3bs5v3yyml0buzr/PoolofBethesda-CarlBloch.jpg –  Jeremy Jul 2 at 12:31

1 Answer 1

Just for a larger comment. This works just fine for me

\documentclass[a4paper]{memoir}
\usepackage{graphicx}
% I do not have that path on my PC
\graphicspath{{Pictures/}}
\begin{document}

\begin{figure}[htbp]
  \centering
  \includegraphics[width=\textwidth,keepaspectratio]{PoolofBethesda-CarlBloch}
  \caption{\emph{Healing at the Pool of Bethesda} (1883) by Carl Bloch.}
  \label{fig:Bethesda}
\end{figure}

\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.