Decrease image size limit to 2048x2048
This commit is contained in:
parent
01bff86c6d
commit
d3aeab5d89
1 changed files with 1 additions and 1 deletions
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue