feat: add potrace converter

This commit is contained in:
A Fox 2025-05-05 21:03:53 -05:00 committed by A. Fox
parent cb9d0ec680
commit bdbd4a122c
4 changed files with 54 additions and 1 deletions

View file

@ -10,6 +10,7 @@ import { convert as convertImage, properties as propertiesImage } from "./vips";
import { convert as convertxelatex, properties as propertiesxelatex } from "./xelatex";
// import { convert as convertCalibre, properties as propertiesCalibre } from "./calibre";
import { convert as convertLibheif, properties as propertiesLibheif } from "./libheif";
import { convert as convertpotrace, properties as propertiespotrace } from "./potrace";
// This should probably be reconstructed so that the functions are not imported instead the functions hook into this to make the converters more modular
@ -86,6 +87,10 @@ const properties: Record<
properties: propertiesFFmpeg,
converter: convertFFmpeg,
},
potrace: {
properties: propertiespotrace,
converter: convertpotrace,
},
};
export async function mainConverter(