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

how to fix "WebAssembly.Compile is disallowed on the main thread, if the buffer size is larger than 4KB. Use WebAssembly.compile, or compile on a worker thread." #31

Open
zhangbowy opened this issue Oct 30, 2024 · 2 comments
Labels
question Further information is requested

Comments

@zhangbowy
Copy link

zhangbowy commented Oct 30, 2024

image

const convert = require("heic-convert/browser");
const conversionResult = await convert({
  buffer: buffer, // the HEIC file buffer
  format: "JPEG", // output format
  quality: 1 // the jpeg compression quality, between 0 and 1
});

window10, chrome95

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36

@catdad catdad added the question Further information is requested label Oct 30, 2024
@catdad
Copy link
Member

catdad commented Oct 30, 2024

I haven't run into this error. Do you have a minimal reproduction for this?

Also, Chrome 95 is 3 years old (current is 130), does this occur on a more recent browser?

@goodallt
Copy link

@catdad We are running into this as well, also on slightly older browsers. Do you have explicit browsers that this package is intended to support?

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

No branches or pull requests

3 participants