[luatex] callback for image loading?
Hans Hagen
j.hagen at xs4all.nl
Fri Sep 28 15:48:03 CEST 2018
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
-----------------------------------------------------------------
More information about the luatex
mailing list