On 9/28/2018 3:19 PM, Patrick Gundlach wrote:
Hello all,
is there a callback for image loading (reading)?
I use
img.scan{filename = "some filename" }
which (if I understand it correctly) calls find_image_file (with kpathsea
disabled) but no reader callback.
Why I am asking: I have an image caching mechanism for images got via http(s)
and I'd like to serve these images from memory.
no, because luatex parses the image (random access) and buffering huge
bitmaps is not really an option
what i do in such case i cache on disk
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
-----------------------------------------------------------------