mirror of https://github.com/VERT-sh/VERT.git
feat: add jfif support (#32)
This commit is contained in:
parent
6324f7f4e3
commit
50100b7570
|
@ -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") {
|
||||
|
|
Loading…
Reference in New Issue