catdad-experiments / catdad-experiments/libheif-js

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."

Open
#31 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
118
Forks
10
Avg merge
2h 3m
Merged PRs (30d)
1

Description

![image](https://github.com/user-attachments/assets/bbec2d13-084f-4666-babb-895a582e5771)

```js
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.