mirror of https://github.com/VERT-sh/VERT.git
parent
cda77f4e12
commit
a47b5ffba9
|
@ -33,6 +33,9 @@ export class VipsConverter extends Converter {
|
||||||
".tif",
|
".tif",
|
||||||
".tiff",
|
".tiff",
|
||||||
".jfif",
|
".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;
|
public readonly reportsProgress = false;
|
||||||
|
@ -51,8 +54,6 @@ export class VipsConverter extends Converter {
|
||||||
error(["converters", this.name], `error in worker: ${message.error}`);
|
error(["converters", this.name], `error in worker: ${message.error}`);
|
||||||
addToast("error", `Error in VIPS worker, some features may not work.`);
|
addToast("error", `Error in VIPS worker, some features may not work.`);
|
||||||
throw new Error(message.error);
|
throw new Error(message.error);
|
||||||
} else {
|
|
||||||
error(["converters", this.name], `unknown message type: ${message.type}`);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,8 +2,6 @@ import { type WorkerMessage, type OmitBetterStrict } from "$lib/types";
|
||||||
import Vips from "wasm-vips";
|
import Vips from "wasm-vips";
|
||||||
|
|
||||||
const vipsPromise = Vips({
|
const vipsPromise = Vips({
|
||||||
// see https://github.com/kleisauke/wasm-vips/issues/85
|
|
||||||
dynamicLibraries: [],
|
|
||||||
});
|
});
|
||||||
|
|
||||||
vipsPromise
|
vipsPromise
|
||||||
|
|
Loading…
Reference in New Issue