feat: add ImageMagick

issue: #295, #269
This commit is contained in:
C4illin 2025-05-23 21:18:47 +02:00
parent af5c768dc7
commit b47e5755f6
4 changed files with 508 additions and 3 deletions

View file

@ -44,6 +44,16 @@ if (process.env.NODE_ENV === "production") {
}
});
exec("magick --version", (error, stdout) => {
if (error) {
console.error("ImageMagick is not installed.");
}
if (stdout) {
console.log(stdout.split("\n")[0]?.replace("Version: ", ""));
}
});
exec("gm version", (error, stdout) => {
if (error) {
console.error("GraphicsMagick is not installed.");