Remove warnings while building image commands

This commit is contained in:
TheEssem 2020-10-06 15:21:39 -05:00
parent ac4e1f5dd8
commit 6cd9878632
2 changed files with 1 additions and 2 deletions

View file

@ -39,7 +39,6 @@ app.post("/run", upload.single("image"), async (req, res, next) => {
if (!isValidJSON(req.body.data)) return res.sendStatus(400);
const object = JSON.parse(req.body.data);
if (!magick.check(object.cmd)) return res.sendStatus(400);
object.path = req.file ? req.file.path : null;

View file

@ -12,7 +12,7 @@
"libraries": [
"<!(pkg-config --libs Magick++)",
],
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS"]
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS", "MAGICKCORE_HDRI_ENABLE=false", "MAGICKCORE_QUANTUM_DEPTH=16"]
}
]
}