Skip to content

armgit / VERT

Public Imported from GitHub
0

The next-generation file converter. Open source, fully local* and free forever.

fix: revert support for AVIF, KXL, and HEIF

JovannMCe9ea02198f4f
diff --git a/src/lib/converters/vips.svelte.ts b/src/lib/converters/vips.svelte.ts
index 33fa389..6ebf401 100644
--- a/src/lib/converters/vips.svelte.ts
+++ b/src/lib/converters/vips.svelte.ts
@@ -34,8 +34,8 @@ export class VipsConverter extends Converter {
".tiff",
".jfif",
//".heif", HEIF files that are encoded like HEIC files (and HEIC files in general) aren't supported due to https://github.com/kleisauke/wasm-vips/issues/3
- ".avif",
- ".jxl",
+ //".avif", there is an issue with vite not bundling the wasm-vips' dynamicLibraries wasm files correctly
+ //".jxl",
];
public readonly reportsProgress = false;
diff --git a/src/lib/workers/vips.ts b/src/lib/workers/vips.ts
index 1a8f7e4..ad54736 100644
--- a/src/lib/workers/vips.ts
+++ b/src/lib/workers/vips.ts
@@ -1,6 +1,6 @@
import Vips from "wasm-vips";
-const vipsPromise = Vips({});
+const vipsPromise = Vips({ dynamicLibraries: [] });
vipsPromise
.then(() => {