On Fri, Oct 28, 2016 at 1:46 PM, Henning Hraban Ramm
Hi, can ConTeXt handle base64 encoded inline images, and how?
I'm trying to process some HTML files that contain those. Makes not a lot of sense, but if ConTeXt can handle them, I don’t need to extract them as files.
Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) GPG Key ID 1C9B22FD
___________________________________________________________________________________ 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 ___________________________________________________________________________________
we have the mime library of luasocket that can encode/decode Base64 \starttext \startluacode for k,v in pairs(mime) do context(k .. ":~" ..tostring(v)) ; context.par() end \stopluacode OK \stoptext see the source at luasocket/doc/reference.html If the image is a bitmap, see doc/context/tests/mkiv/graphics/bitmap-001.tex doc/context/tests/mkiv/graphics/bitmap-002.tex of http://www.pragma-ade.nl/context/latest/cont-tst.7z -- luigi