mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Soften limitInputPixels upper limit #146
Default limit of 14-bit dimensions remains
This commit is contained in:
@@ -665,16 +665,6 @@ describe('Input/output', function() {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Invalid fails - huge', function(done) {
|
||||
var isValid = false;
|
||||
try {
|
||||
sharp().limitInputPixels(Math.pow(0x3FFF, 2) + 1);
|
||||
isValid = true;
|
||||
} catch (e) {}
|
||||
assert(!isValid);
|
||||
done();
|
||||
});
|
||||
|
||||
it('Invalid fails - string', function(done) {
|
||||
var isValid = false;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user