On 29-11-2010 10:07, Patrick Gundlach wrote:
Hi,

what is the difference of img.width and img.xsize? (reference manual 4.5.2 
img.keys)

For example, the cow.pdf gives me

img.width = 18646779 and img.xsize = 18089984

What are the units? img.width is in sp, what about img.xsize?

all units in luatex are scaled points

the difference is some 8.4 pt which is somewhat weird

\the\dimexpr18646779sp/\number\dimexpr1bp

\the\dimexpr18089984sp/\number\dimexpr1pt

that's pretty close so maybe the xsize (bounding box values) takes the wrong unit when conversion to sp takes place

Hans



-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
_______________________________________________
dev-luatex mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/dev-luatex

Reply via email to