[NTG-context] Access figure data?

Peter Rolf indiego at gmx.net
Fri Oct 15 09:54:50 CEST 2010


Am 15.10.2010 07:16, schrieb Peter Münster:
> On Thu, Oct 14 2010, Peter Rolf wrote:
> 
>> Nice to have. Is this also possible from the lua side?
> 
> Hello,
> 
> Perhaps with the img library of luatex (see luatex manual).
>
Thanks Peter! Stupid me haven't thought about the luatex manual.

local f = img.scan{ filename = "cow.jpg" }
print("xsize = ",f.xsize,", ysize = ",f.ysize)


Best wishes,  Peter



More information about the ntg-context mailing list