Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V4.0.x Work-in-progress branch #394

Merged
merged 51 commits into from
Sep 15, 2021
Merged

V4.0.x Work-in-progress branch #394

merged 51 commits into from
Sep 15, 2021

Conversation

swederik
Copy link
Member

@swederik swederik commented Aug 30, 2021

This PR adds support for using the WebAssembly builds of each codec (found here: https://github.com/cornerstonejs/codecs) in the WADO Image Loader.

It still needs a ton of testing, but this will be the basis for the next major version of this library.

If you want to test this in OHIF now, you can look at this branch: https://github.com/OHIF/Viewers/commits/feat/v2-main-codectest

You will need to build this library and use yarn link to link the cornerstone-wado-image-loader into OHIF for the branch to work.

Credit is due to @chafey for pioneering the WASM codec work and @dannyrb for starting to bring it into this library.

The biggest remaining issue is consumption of the library. Right now, in order to dynamically load the WASM modules, the consuming libraries need to copy the entire dist folder from the WADO Image Loader into their output dist for their application (e.g via CopyWebpackPlugin). It would be nicer if we could avoid this step and also keep the bundle small.

TODO:

Live demo is here:
https://deploy-preview-394--cornerstone-wado-image-loader.netlify.app/wadouri/index.html

  • One non-retired transfer syntax still appears to be broken:
    1.2.840.10008.1.2.4.51 JPEG Baseline (Processes 2 & 4): Default Transfer Syntax for Lossy JPEG 12-bit Image Compression (Process 4 only)

We need to figure out how to get a WASM build of this working: https://github.com/cornerstonejs/codecs/tree/main/packages/libjpeg-turbo-12bit

Note that it doesn't use TurboJPEG API for 12 bit support, it's the old libjpeg api

@netlify
Copy link

netlify bot commented Aug 30, 2021

✔️ Deploy Preview for cornerstone-wado-image-loader ready!

🔨 Explore the source changes: 86a1a59

🔍 Inspect the deploy log: https://app.netlify.com/sites/cornerstone-wado-image-loader/deploys/614196a9cb38240007ab7b8d

😎 Browse the preview: https://deploy-preview-394--cornerstone-wado-image-loader.netlify.app

@swederik swederik merged commit e38c066 into master Sep 15, 2021
@swederik swederik deleted the v4.0.x-rc branch September 15, 2021 06:47
@swederik swederik restored the v4.0.x-rc branch September 15, 2021 06:47
@ohif-bot
Copy link
Contributor

🎉 This PR is included in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants