kripken/j2k.js — pull request #1 by arturadib (2011-12-07 21:48:17+00:00)
Title: Examples (not working :))

Hello Alon,

This is more of a "cry for help" than a real pull request (though you're welcome to merge it if you deem it useful).

I'm helping @notmasteryet in trying to integrate j2k.js into our pdf.js code base, but we seem to have hit a wall.

First, `openjpeg()` seems to break with certain images. I'm including two such images (`relax.jp2` and `world.jp2`).

Second, I managed to find an image that does not cause it to throw an error (`examples/sail.j2k`), but I can't seem to display it correctly with canvas (see `examples/helloworld.html`). I'm probably doing something stupid with the rgb/rgba conversion, but I'm tired and can't find the culprit. :)

Anyway, I was hoping you could shed some light here for us?

Thanks, Alon.