Ensure pipelineColourspace handles CMYK profiles #3906

This commit is contained in:
Lovell Fuller 2024-03-06 20:20:04 +00:00
parent 045d54e2e6
commit 3eeaee71c0

View File

@ -331,6 +331,7 @@ class PipelineWorker : public Napi::AsyncWorker {
sharp::HasProfile(image) && sharp::HasProfile(image) &&
image.interpretation() != VIPS_INTERPRETATION_LABS && image.interpretation() != VIPS_INTERPRETATION_LABS &&
image.interpretation() != VIPS_INTERPRETATION_GREY16 && image.interpretation() != VIPS_INTERPRETATION_GREY16 &&
baton->colourspaceInput != VIPS_INTERPRETATION_CMYK &&
!baton->input->ignoreIcc !baton->input->ignoreIcc
) { ) {
// Convert to sRGB/P3 using embedded profile // Convert to sRGB/P3 using embedded profile