[Dev-luatex] How to crop bitmap images

Patrick Gundlach patrick at gundla.ch
Mon Jul 1 13:51:09 CEST 2013


Hi,

I'd like to crop a bitmap image. How? This is my code for image inclusion:

-------
\directlua{
  image = img.scan{filename="hacker.jpg"}
  tex.box[0] = node.hpack(img.node(image))
}

\box0
-------

bbox{...} seems to work only with PDF images.


Patrick



More information about the dev-luatex mailing list