<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 22, 2016 at 10:15 AM, Patrick Gundlach <span dir="ltr"><<a href="mailto:patrick@gundla.ch" target="_blank">patrick@gundla.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello<br>
<span class=""><br>
> 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).<br>
<br>
</span>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".<br>
<br></blockquote><div><br></div><div>Hm.</div><div>As is the source code now, I think that it's better to exit (as is now) than try to recover from the wrong image. </div><div>I mean: all is doable, but we should rewrite code </div><div>to obtain (with a small effort) the same thing that we can have just now, </div><div>breaking the compatibility with the behaviour of pdftex.</div><div><br></div><div> </div></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature">luigi<br></div>
</div></div>