Decrease image size limit to 2048x2048

This commit is contained in:
Petr Sloup 2016-06-27 06:53:29 +02:00
parent 01bff86c6d
commit d3aeab5d89

View file

@ -229,7 +229,7 @@ module.exports = function(options, repo, params, id) {
return res.status(400).send('Invalid center');
}
if (Math.min(width, height) <= 0 ||
Math.max(width, height) * scale > 6000) {
Math.max(width, height) * scale > 2048) {
return res.status(400).send('Invalid size');
}
if (format == 'png' || format == 'webp') {