feat: support AVIF & JXL

closes #14
This commit is contained in:
JovannMC 2025-02-11 20:44:49 +03:00
parent cda77f4e12
commit a47b5ffba9
No known key found for this signature in database
2 changed files with 3 additions and 4 deletions

View File

@ -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}`);
}
};
}

View File

@ -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