Feat/optional codecs, HTJ2K support #391
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
This PR reconfigures the image decompression codecs such that they can be included piecemeal or all at once. The use case is for applications that only handle one or several known transfer syntaxes, and these can only included the necessary codec and thus reduce the javascript bundle size. This also includes support for HTJ2K compressed images. Sorry about formatting changes in some of the Markdown files thanks to my editor auto-formatting.
Breaking changes
configure()
functionallDecoders.js
file is provided for convenience.docs/Migration.md
HTJ2K
This adds support for loading HTJ2K compressed images using the emscripten build from Chris Hafey here. See documentation in
docs/HTJ2K.md
. There may be other approaches to how to best load these as HTJ2K is not a standardized transfer syntax, and I am open to opinions.Not sure if this should be a separate pull request, but I was working on both at the same time. I think it could pretty easily be removed and submitted separately if that's preferred.