Hi friends,

Pat, I once used this library to help me with some unknown files:

https://bitbucket.org/leafstorm/lua-mimetypes

Hope it could give us some pointers and ideas. :)

Cheerio!

Paulo

Em 22-01-2016 07:15, Patrick Gundlach escreveu:
Hello

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".

Thanks

    Patrick



Reply via email to