web/remux: convert to a web worker (wip)

This commit is contained in:
wukko
2025-01-15 22:11:08 +06:00
parent 28d8927c08
commit 1ed2eef65a
5 changed files with 198 additions and 130 deletions

View File

@@ -32,7 +32,7 @@ export const maskImage = async (source: Blob, mask: RawImage) => {
return canvas;
}
export const removeImageBackground = async (file: File) => {
const removeImageBackground = async (file: File) => {
const originalImageBlob = new Blob([file]);
const image = await RawImage.fromBlob(originalImageBlob);