[luatex] howto: scaling an image

Patrick Gundlach patrick at gundla.ch
Sun Mar 21 23:02:23 CET 2010


>> 
>> local hacker = img.scan{filename = "hacker.jpg"}
>> 
>> hacker.width  = hacker.width * 0.5
>> node.write(img.node(hacker))
>> 
>> gives me a distorted image.
> 
> right, forgot: set the others to nil, and it will be re-scaled.

Thats interesting and works quite well! Thanks for the pointer.

Patrick



More information about the luatex mailing list