I have a couple of .jpg files that are 1024 x 768 pixels, with a resolution of 96dpi. If I just include them in my LaTeX document with:<div><br></div><div>\includegraphics{xyz.jpg}</div><div><br></div><div>they appear on the page at 1024bp x 768bp. In effect, the resolution is ignored, and they're scaled up by 1/3.</div>
<div><br></div><div>Is there a way to get LaTeX to scale based on the resolution in the file, without my having to explicitly read the .jpg file and get the resolution myself?</div><div><br></div><div>I'm writing a program that generates LaTeX from XML, so I'd like to simply tell LaTeX to do the right thing, without having to explicitly check the resolution in every file to generate my \includegraphics command.</div>
<div><br></div><div>I'm looking at the options in D. Carlisle's _Packages in the 'graphics' bundle_ document, but I don't see any options that look like what I'm seeking.</div><div><br></div><div>Thank you!</div>
<div><br></div><div>-pd</div><div><br></div><div><br></div>