diff --git a/src/pipeline.cc b/src/pipeline.cc index b43b1c0c..74383f07 100644 --- a/src/pipeline.cc +++ b/src/pipeline.cc @@ -297,7 +297,7 @@ class PipelineWorker : public Nan::AsyncWorker { } // Ensure we're using a device-independent colour space - if (sharp::HasProfile(image)) { + if (sharp::HasProfile(image) && image.interpretation() != VIPS_INTERPRETATION_LABS) { // Convert to sRGB using embedded profile try { image = image.icc_transform( diff --git a/test/unit/resize-contain.js b/test/unit/resize-contain.js index af7604e5..d443ed2a 100644 --- a/test/unit/resize-contain.js +++ b/test/unit/resize-contain.js @@ -116,7 +116,7 @@ describe('Resize fit=contain', function () { }); }); - it.skip('TIFF in LAB colourspace onto RGBA background', function (done) { + it('TIFF in LAB colourspace onto RGBA background', function (done) { sharp(fixtures.inputTiffCielab) .resize(64, 128, { fit: 'contain',