From 3eeaee71c06c38d0d9e4d2abcb6b04397febe0b8 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Wed, 6 Mar 2024 20:20:04 +0000 Subject: [PATCH] Ensure pipelineColourspace handles CMYK profiles #3906 --- src/pipeline.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pipeline.cc b/src/pipeline.cc index 85a28569e..fd8dea839 100644 --- a/src/pipeline.cc +++ b/src/pipeline.cc @@ -331,6 +331,7 @@ class PipelineWorker : public Napi::AsyncWorker { sharp::HasProfile(image) && image.interpretation() != VIPS_INTERPRETATION_LABS && image.interpretation() != VIPS_INTERPRETATION_GREY16 && + baton->colourspaceInput != VIPS_INTERPRETATION_CMYK && !baton->input->ignoreIcc ) { // Convert to sRGB/P3 using embedded profile