[texhax] includegraphics and image scaling
Peter Davis
pfd at pfdstudio.com
Fri Dec 10 11:43:24 CET 2010
On Fri, Dec 10, 2010 at 1:35 AM, Heiko Oberdiek <
heiko.oberdiek at googlemail.com> wrote:
> On Thu, Dec 09, 2010 at 11:12:36PM -0500, Peter Davis wrote:
>
> > http://www.pfdstudio.com/images/Chrysanthemum.jpg
>
> Quick results of:
>
> * file:
> JPEG image data, JFIF standard 1.02, resolution (DPI), 96 x 96
> * bmpsize-test:
> Type: jpg
> Pixel width: 1024 px
> Pixel height: 768 px
> Density x: 96 dots per 72.27pt
> Density y: 96 dots per 72.27pt
> Width: 767.99854 bp
> Height: 575.99863 bp
> pdfTeX:
> 770.87813pt, 578.15858pt
> XeTeX:
> 1027.83746pt, 770.87813pt
> ImageMagick 5.5.7:
> x-Resolution: 72/1
> y-Resolution: 72/1
> Resolution: 96x96 pixels/inch
>
>
Thank you, Heiko. So it appears that pdfTeX gets it right, but ImageMagick
and XeTeX incorrectly use 72dpi as the resolution.
If I could use the fontspec package with pdfTeX, I'd switch to that. As is,
I suppose I have to check the pixel dimensions and resolution somehow in my
own code, and simply specify the desired width and height in the tex file.
Thank you.
-pd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20101210/a4c062cc/attachment.html>
More information about the texhax
mailing list