Remove warnings while building image commands
This commit is contained in:
parent
ac4e1f5dd8
commit
6cd9878632
2 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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"]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue