Add support for profile-less CMYK images #99

This commit is contained in:
Lovell Fuller
2014-11-06 11:30:19 +00:00
parent 62fcfb3dba
commit f7c2a839ad
7 changed files with 43 additions and 12 deletions

View File

@@ -66,4 +66,16 @@ describe('Colour space conversion', function() {
});
});
it('From profile-less CMYK to sRGB', function(done) {
sharp(fixtures.inputJpgWithCmykNoProfile)
.resize(320)
.toBuffer(function(err, data, info) {
if (err) throw err;
assert.strictEqual(true, data.length > 0);
assert.strictEqual('jpeg', info.format);
assert.strictEqual(320, info.width);
done();
});
});
});