mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Ensure profile-less CMYK roundtrip skips space conv #3620
This commit is contained in:
@@ -93,6 +93,19 @@ describe('Colour space conversion', function () {
|
||||
});
|
||||
});
|
||||
|
||||
it('Profile-less CMYK roundtrip', async () => {
|
||||
const [c, m, y, k] = await sharp(fixtures.inputJpgWithCmykNoProfile)
|
||||
.pipelineColourspace('cmyk')
|
||||
.toColourspace('cmyk')
|
||||
.raw()
|
||||
.toBuffer();
|
||||
|
||||
assert.deepStrictEqual(
|
||||
{ c, m, y, k },
|
||||
{ c: 55, m: 27, y: 0, k: 0 }
|
||||
);
|
||||
});
|
||||
|
||||
it('From sRGB with RGB16 pipeline, resize with gamma, to sRGB', function (done) {
|
||||
sharp(fixtures.inputPngGradients)
|
||||
.pipelineColourspace('rgb16')
|
||||
|
||||
Reference in New Issue
Block a user