Ignore greyscale ICC profiles due to lcms bug #3112

This commit is contained in:
Lovell Fuller
2022-02-28 11:28:08 +00:00
parent fc3b4a683d
commit 21a960796c
2 changed files with 5 additions and 1 deletions

View File

@@ -292,7 +292,8 @@ class PipelineWorker : public Napi::AsyncWorker {
if (
sharp::HasProfile(image) &&
image.interpretation() != VIPS_INTERPRETATION_LABS &&
image.interpretation() != VIPS_INTERPRETATION_GREY16
image.interpretation() != VIPS_INTERPRETATION_GREY16 &&
image.interpretation() != VIPS_INTERPRETATION_B_W
) {
// Convert to sRGB/P3 using embedded profile
try {