<br><div class="gmail_quote">On Thu, Dec 9, 2010 at 6:08 PM, Heiko Oberdiek <span dir="ltr"><<a href="mailto:heiko.oberdiek@googlemail.com">heiko.oberdiek@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, Dec 09, 2010 at 05:12:07PM -0500, Peter Davis wrote:<br>
<br>
> On Thu, Dec 9, 2010 at 4:51 PM, Martin Schröder <<a href="mailto:martin@oneiros.de">martin@oneiros.de</a>> wrote:<br>
><br>
> > 2010/12/9 Peter Davis <<a href="mailto:pfd@pfdstudio.com">pfd@pfdstudio.com</a>>:<br>
> > > I have a couple of .jpg files that are 1024 x 768 pixels, with a<br>
> > resolution<br>
> > > of 96dpi. If I just include them in my LaTeX document with:<br>
> > > \includegraphics{xyz.jpg}<br>
> > > they appear on the page at 1024bp x 768bp. In effect, the resolution is<br>
> > > ignored, and they're scaled up by 1/3.<br>
<br>
</div><div class="im">> > What's the output of<br>
> > - "identify -verbose" (from imagemagick)<br>
<br>
</div>> Image: Chrysanthemum.jpg<br>
<div class="im">> Geometry: 1024x768+0+0<br>
> Resolution: 72x72<br>
> Print size: 14.2222x10.6667<br>
> Units: PixelsPerInch<br>
<br>
</div>The resolution is 72dpi, not 96dpi.<br></blockquote><div><br></div><div><br></div><div>Interesting. The Windows Photo Viewer clearly lists it as 96dpi horizontally and vertically:</div><div><br></div><div><img src="cid:ii_12ccd6194638561e" alt="WindowsPhotoViewer.gif" title="WindowsPhotoViewer.gif"><br>
</div><div> </div><div><br></div><div>I've run into this before ... where different tools report different resolutions for JPEG files. If memory serves, ImageMagick always reported 72dpi, whereas the IJG JPEG Library reported something else. I think this is the result of multiple file formats with potentially inconsistent fields.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
width = (1024 dots / 72 (dots/in)) = 14.2222 in<br>
Unit conversion: 1in = 72bp<br>
==> width = 1024bp<br>
<br>
Therefore the image is shown in the correct size on the paper.<br>
The graphicx package allows you to scale the image,<br>
see options `scale' or `width'.<br>
Documentation of LaTeX's graphics bundle in file `grfguide.pdf'.<br></blockquote><div><br></div><div>Yes, that's the document I've been looking at.</div><div><br></div><div>Thanks!</div><div><br></div><div>
-pd</div><div> </div><div><br></div></div>