router.get('*', gallery({
staticFiles : 'resources/albums',
urlRoot : 'gallery',
title : 'Images',
render: false
}), function(req, res, next) {
console.log(req.data)
// res.render('image/delete.handlebars',req.html)
res.send(req.html)
})
above is my code to use the gallery. the problem is that when I went into the gallery page. the node crashed with the error info in the title. I have installed the imageMagic (I can run "convert.exe" in the CMD). Any ideas about how to solve this problem?? Thanks very much
router.get('*', gallery({
staticFiles : 'resources/albums',
urlRoot : 'gallery',
title : 'Images',
render: false
}), function(req, res, next) {
console.log(req.data)
// res.render('image/delete.handlebars',req.html)
res.send(req.html)
})
above is my code to use the gallery. the problem is that when I went into the gallery page. the node crashed with the error info in the title. I have installed the imageMagic (I can run "convert.exe" in the CMD). Any ideas about how to solve this problem?? Thanks very much