Skip to content

Commit

Permalink
update expected file + use license free cmyk profile, following #4096…
Browse files Browse the repository at this point in the history
  • Loading branch information
adriaanmeuris committed May 13, 2024
1 parent 2ad29c9 commit ba11376
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
Binary file removed test/fixtures/U.S. Web Coated (SWOP) v2.icc
Binary file not shown.
Binary file added test/fixtures/XCMYK 2017.icc
Binary file not shown.
Binary file modified test/fixtures/expected/colourspace.cmyk-to-cmyk-negated.tif
Binary file not shown.
Binary file modified test/fixtures/expected/negate-trans.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions test/unit/colourspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ describe('Colour space conversion', function () {
.resize(320, 240)
.toColourspace('cmyk')
.pipelineColourspace('cmyk')
.withIccProfile(fixtures.path('U.S. Web Coated (SWOP) v2.icc'))
.withIccProfile(fixtures.path('XCMYK 2017.icc'))
.raw()
.toBuffer();

const [c, m, y, k] = data;
assert.deepStrictEqual(
{ c, m, y, k },
{ c: 25, m: 255, y: 255, k: 4 }
{ c: 1, m: 239, y: 227, k: 5 }
);
});

Expand All @@ -127,7 +127,7 @@ describe('Colour space conversion', function () {
.resize(320, 240)
.toColourspace('cmyk')
.pipelineColourspace('cmyk')
.withIccProfile(fixtures.path('U.S. Web Coated (SWOP) v2.icc'))
.withIccProfile(fixtures.path('XCMYK 2017.icc'))
.negate()
.toBuffer(function (err, data, info) {
if (err) throw err;
Expand Down

0 comments on commit ba11376

Please sign in to comment.