mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Use libvips built-in ICC profiles when required #1619
This commit is contained in:
@@ -394,6 +394,15 @@ describe('Image Stats', function () {
|
||||
});
|
||||
});
|
||||
|
||||
it('CMYK input without profile', () =>
|
||||
sharp(fixtures.inputJpgWithCmykNoProfile)
|
||||
.stats()
|
||||
.then(stats => {
|
||||
assert.strictEqual(4, stats.channels.length);
|
||||
assert.strictEqual(true, stats.isOpaque);
|
||||
})
|
||||
);
|
||||
|
||||
it('Stream in, Callback out', function (done) {
|
||||
const readable = fs.createReadStream(fixtures.inputJpg);
|
||||
const pipeline = sharp().stats(function (err, stats) {
|
||||
|
||||
Reference in New Issue
Block a user