mirror of https://github.com/VERT-sh/VERT.git
parent
e61214619b
commit
3dbb80a309
|
|
@ -14,7 +14,6 @@ import { parseAni } from "$lib/util/parse/ani";
|
|||
import { parseIcns } from "vert-wasm";
|
||||
import type { WorkerMessage } from "$lib/types";
|
||||
import type { ConversionSettings } from "$lib/types/conversion-settings";
|
||||
import { log } from "$lib/util/logger";
|
||||
|
||||
let magickInitialized = false;
|
||||
|
||||
|
|
@ -355,11 +354,6 @@ const magickConvert = async (
|
|||
img.alpha(AlphaAction.Remove);
|
||||
}
|
||||
|
||||
log(
|
||||
["workers", "imagemagick"],
|
||||
`Converting to ${fmt} with settings: ${JSON.stringify(conversionSettings)}`,
|
||||
);
|
||||
|
||||
// magick-wasm automatically clamps (https://github.com/dlemstra/magick-wasm/blob/76fc6f2b0c0497d2ddc251bbf6174b4dc92ac3ea/src/magick-image.ts#L2480)
|
||||
img.write(fmt as unknown as MagickFormat, (o: Uint8Array) => {
|
||||
resolve(structuredClone(o));
|
||||
|
|
|
|||
Loading…
Reference in New Issue