feat: add jfif support (#32)

This commit is contained in:
not-nullptr 2025-02-06 17:44:47 +00:00
parent 6324f7f4e3
commit 50100b7570
1 changed files with 5 additions and 1 deletions

View File

@ -31,6 +31,7 @@ export class VipsConverter extends Converter {
".raw",
".tif",
".tiff",
".jfif",
];
public readonly reportsProgress = false;
@ -63,7 +64,10 @@ export class VipsConverter extends Converter {
if (res.type === "finished") {
log(["converters", this.name], `converted ${input.name} to ${to}`);
return new VertFile(new File([res.output], input.name), to);
return new VertFile(
new File([res.output as unknown as BlobPart], input.name),
to,
);
}
if (res.type === "error") {