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

WebAssembly version #10

Open
kaatt opened this issue Feb 13, 2021 · 7 comments
Open

WebAssembly version #10

kaatt opened this issue Feb 13, 2021 · 7 comments
Labels
help wanted Extra attention is needed

Comments

@kaatt
Copy link
Contributor

kaatt commented Feb 13, 2021

Having a wasm version of this would be much faster I believe!

@mishaschwartz
Copy link

Another advantage of a WASM version is that it would allow websites that enable a Content Security Policy to use it more securely. See strukturag/libheif#173

@raxhvl
Copy link

raxhvl commented Apr 7, 2021

I am working on a WASM build

@catdad catdad added the help wanted Extra attention is needed label Apr 7, 2021
@catdad
Copy link
Member

catdad commented Apr 7, 2021

@ravindranrahul that's great! I am happy to look at PRs or help where I can

@raxhvl
Copy link

raxhvl commented Apr 8, 2021

I'm testing out a local build. I'll keep you posted once i get it working.

@raxhvl
Copy link

raxhvl commented Apr 9, 2021

I was able to put together the wasm build https://github.com/ravindranrahul/heif-wasm. wasm binary loads asynchronously, I need to figure out how to initialize the post.js code correctly (I have manually moved post.js code to a custom script now). I'll then submit a PR to libheif and you may update your npm package.

@raxhvl
Copy link

raxhvl commented Apr 12, 2021

I have created a PR strukturag/libheif#474

@jerbob92
Copy link

libheif now compiles to WASM by default: strukturag/libheif#925

I have created the following ticket to make the maintainer of this repo aware: #19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants