feat: add libjxl for jpegxl conversion

This commit is contained in:
C4illin 2024-06-11 19:30:06 +02:00
parent 31e1a3124c
commit ff680cb295
4 changed files with 138 additions and 7 deletions

View file

@ -20,6 +20,11 @@ import {
properties as propertiesPdflatex,
} from "./pdflatex";
import {
convert as convertLibjxl,
properties as propertiesLibjxl,
} from "./libjxl";
import { normalizeFiletype } from "../helpers/normalizeFiletype";
// This should probably be reconstructed so that the functions are not imported instead the functions hook into this to make the converters more modular
@ -50,6 +55,10 @@ const properties: {
) => any;
};
} = {
libjxl: {
properties: propertiesLibjxl,
converter: convertLibjxl,
},
vips: {
properties: propertiesImage,
converter: convertImage,