[NTG-context] lmtx: img?
Hans Hagen
j.hagen at xs4all.nl
Sat Aug 3 10:23:34 CEST 2019
On 8/3/2019 9:02 AM, Henning Hraban Ramm wrote:
> Zitat von Hans Hagen <j.hagen at 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
-----------------------------------------------------------------
More information about the ntg-context
mailing list