fix: treat jfif as jpeg

issue #163
This commit is contained in:
C4illin
2024-10-04 23:43:54 +02:00
parent 5d9000bb33
commit 339b79f786
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
import { exec } from "node:child_process";
// declare possible conversions
export const properties = {
from: {
@@ -138,4 +139,4 @@ export function convert(
},
);
});
}
}

View File

@@ -2,6 +2,7 @@ export const normalizeFiletype = (filetype: string): string => {
const lowercaseFiletype = filetype.toLowerCase();
switch (lowercaseFiletype) {
case "jfif":
case "jpg":
return "jpeg";
case "htm":