fixed background error

This commit is contained in:
Kasper Rynning-Tønnesen
2017-05-03 19:00:42 +02:00
parent ef6d3af3a9
commit 5f8984d2d1

View File

@@ -48,7 +48,7 @@ router.route('/api/imageblob').post(function(req, res) {
Jimp.read('https://img.youtube.com/vi/' + req.body.id + '/mqdefault.jpg', function (err, image) { Jimp.read('https://img.youtube.com/vi/' + req.body.id + '/mqdefault.jpg', function (err, image) {
if (err) throw err; if (err) throw err;
image.blur(50) image.blur(50)
.write(path.join(__dirname, '/views/assets/images/thumbnails/' + req.body.id + '.jpg'), function(e, r) { .write(path.join(__dirname, '/public/assets/images/thumbnails/' + req.body.id + '.jpg'), function(e, r) {
res.send(req.body.id + ".jpg"); res.send(req.body.id + ".jpg");
}); });
}); });