feat: add inkscape for vector images

This commit is contained in:
Cloudburst 2024-11-16 11:34:47 +01:00
parent b485bc9445
commit f3740e9ded
5 changed files with 82 additions and 1 deletions

View file

@ -53,6 +53,16 @@ if (process.env.NODE_ENV === "production") {
}
});
exec("inkscape --version", (error, stdout) => {
if (error) {
console.error("Inkscape is not installed.");
}
if (stdout) {
console.log(stdout.split("\n")[0]);
}
});
exec("djxl --version", (error, stdout) => {
if (error) {
console.error("libjxl-tools is not installed.");