mateusz-matela / djvu-html5

HTML5 based DjVu file viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Viewer fails with documents containing JPEG encoded layers

olanowak opened this issue · comments

For http://fbc.pionier.net.pl/view/nnnqbs2 we got multiple errors of this kind:
djvu_html5-0.js:1158 Tue May 17 15:09:05 GMT+200 2016 com.google.gwt.logging.client.LogConfiguration SEVERE: (TypeError) : Cannot read property 'Pb' of nullcom.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'Pb' of null at Unknown.JL(djvu_html5-0.js) at Unknown.IL(djvu_html5-0.js) at Unknown.nK(djvu_html5-0.js) at Unknown.td(djvu_html5-0.js) at Unknown.qd(djvu_html5-0.js) at Unknown.Dd(djvu_html5-0.js) at Unknown.yd(djvu_html5-0.js) at Unknown.bd(djvu_html5-0.js) at Unknown.ed(djvu_html5-0.js) at Unknown.eval(djvu_html5-0.js) at Unknown.d(djvu_html5-0.js)

This DjVu document contained JPEG encoded images and this was not supported in the original javadvu. It kinda misses the purpose of having DjVu documents, but the specs allow it and now I've implemented it.