Allow input density range up to 100000 DPI (#2348)

This commit is contained in:
stefanprobst
2020-09-02 09:56:12 +02:00
committed by GitHub
parent d406cb619c
commit 79f476ae4d
6 changed files with 32 additions and 3 deletions

View File

@@ -647,7 +647,7 @@ describe('Input/output', function () {
it('Invalid density: string', function () {
assert.throws(function () {
sharp({ density: 'zoinks' });
}, /Expected number between 1 and 2400 for density but received zoinks of type string/);
}, /Expected number between 1 and 100000 for density but received zoinks of type string/);
});
it('Setting animated property updates pages property', function () {
assert.strictEqual(sharp({ animated: false }).options.input.pages, 1);