Ensure correct pageHeight when verifying image dimensions (#2343)

This commit is contained in:
Denis Soldatov
2020-08-28 15:39:19 +03:00
committed by GitHub
parent 866e9824d1
commit 00e65f6f14
4 changed files with 11 additions and 2 deletions

View File

@@ -16,4 +16,12 @@ describe('toBuffer', () => {
});
});
});
it('correctly process animated webp with height > 16383', (done) => {
const image = sharp(fixtures.inputWebPAnimatedBigHeight, { animated: true });
image.toBuffer().then((buff) => {
assert.strictEqual(Buffer.isBuffer(buff), true);
done();
});
});
});