[luatex] Prevent stop when tiff file loads
Paulo Roberto Massa Cereda
cereda.paulo at gmail.com
Fri Jan 22 11:51:26 CET 2016
Pat, I once used this library to help me with some unknown files:
Hope it could give us some pointers and ideas. :)
Em 22-01-2016 07:15, Patrick Gundlach escreveu:
>> In practice, identifying all image files formats (tiff, png, pdf...) *should* work with the first 4 bytes of the file (they were designed this way).
> I think I'll go that way, but I still wish (feature request) that LuaTeX does not fail with a fatal error if an unknown file format is encountered, instead it would be nice to have something like "return nil, errormessage".
More information about the luatex