Skip to content

armgit / VERT

Public Imported from GitHub
0

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

feat: support AVIF & JXL

JovannMCa47b5ffba9aa
diff --git a/src/lib/converters/vips.svelte.ts b/src/lib/converters/vips.svelte.ts
index 9f9a5ac..33fa389 100644
--- a/src/lib/converters/vips.svelte.ts
+++ b/src/lib/converters/vips.svelte.ts
@@ -33,6 +33,9 @@ export class VipsConverter extends Converter {
".tif",
".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",
];
public readonly reportsProgress = false;
@@ -51,8 +54,6 @@ export class VipsConverter extends Converter {
error(["converters", this.name], `error in worker: ${message.error}`);
addToast("error", `Error in VIPS worker, some features may not work.`);
throw new Error(message.error);
- } else {
- error(["converters", this.name], `unknown message type: ${message.type}`);
}
};
}
diff --git a/src/lib/workers/vips.ts b/src/lib/workers/vips.ts
index 058cb67..35f09f1 100644
--- a/src/lib/workers/vips.ts
+++ b/src/lib/workers/vips.ts
@@ -2,8 +2,6 @@ import { type WorkerMessage, type OmitBetterStrict } from "$lib/types";
import Vips from "wasm-vips";
const vipsPromise = Vips({
- // see https://github.com/kleisauke/wasm-vips/issues/85
- dynamicLibraries: [],
});
vipsPromise