Open acdha opened 9 years ago
Current status: opj_decompress builds but needs some packaging work to actually fake file I/O so run() will work
The most immediate step would be porting this hack:
A more complete solution might be to fork opj_decompress and add support for accepting the desired output image dimensions so we could selectively decode only the resolution level needed for that level of detail and simplify things so e.g. output will always be the 8-bit RGBA format which our canvas supports.
See https://github.com/kripken/j2k.js/issues/8
Current build process: