On Wed, Oct 16 2024, Henning Hraban Ramm wrote: >> I use img.scan() for that. > > are you sure that your code works with LMTX?
Hi Hraban, No, sorry, I didn’t test it... > Find attached my version. Thanks, I have integrated your ideas in a new version here attached. > It seems to work, but only for the first instance of an image, Yes, you need to patch the file grph-inc.lmt: https://lists.contextgarden.net/archives/list/ntg-context@ntg.nl/message/ES7Q57MU5UIEV2B2AWEAPR66MMXI6ZHY/ Cheers, -- Peter
grph-downsample.lua
Description: Binary data
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________