mirror of
https://github.com/imputnet/cobalt.git
synced 2026-02-17 22:15:58 +00:00
web/remux: convert to a web worker (wip)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user