mozilla/pdf.js — pull request #927 by arturadib (2011-12-12 22:33:04+00:00)
Title: JPEG2000 via j2k.js

This replaces #634, so we can all help and work on the same branch.

Lots of progress. @kripken fixed a bunch of things for j2k.js, but there are still some open issues:

+ I accidentally learned that j2k.js uses `Array()` internally, which makes large images impractically slow to load. I've talked to Alon and he's modifying it to use typed arrays. He says it speeds things up by 10x.
+ Right now we're blocked by a bug with web workers that prevents `openjpeg()` from running in there. See https://github.com/kripken/j2k.js/pull/3#issuecomment-3113880
+ We still need to address the extension issue (`jp2` vs `j2k`). I wanted to use try-catch but that brings up our error dialog. Gotta think about this.

UPDATE: ... and here it is! :) https://github.com/kripken/j2k.js/commit/1949713f6c6992ceb918e2b8a9db561acccd5d67