On 8/3/2019 9:02 AM, Henning Hraban Ramm wrote:
Zitat von Hans Hagen <j.ha...@xs4all.nl>:
On 8/2/2019 11:59 PM, Henning Hraban Ramm wrote:
Hi,
when I try to compile my books with lmtx, it chokes on my Lua image
library. Seems like "img" (esp. img.scan) is gone. Is there a
replacement?
It depends on what you want to do ... there are some helpers and I can
add more if needed. There is (and already was)
local t = figures.getinfo("cow.pdf")
Thank you!
I had
local pic = img.scan{filename = figures.current().status.fullname}
and actually just used pic.xsize and pic.ysize to calculate scaling and
cropping parameters.
There’s probably an easier way to get those.
See attachment – I’m trying to calculate the image size to fit into the
line grid.
hm, there's a conceptual error in there (which, lucky you, won't show up
in your case due to some settings in context) .. i'll tell you off line
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________