[Dev-luatex] Q: image size

Hartmut Henkel hartmut_henkel at gmx.de
Mon Nov 29 23:11:51 CET 2010


On Mon, 29 Nov 2010, Patrick Gundlach wrote:

> 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

with

a\directlua{
  a = img.scan({filename = "cow.pdf"})
  print("")
  print(a.xsize)
  print(a.width)
  img.write(a)
}
\bye

i get

This is LuaTeX, Version beta-0.65.0-2010112723 (rev 3990)
 restricted \write18 enabled.
(./xx.tex
18089984
18089984

no difference!?

Regards, Hartmut


More information about the dev-luatex mailing list