Re-introduce support for greyscale ICC profiles #3114

This commit is contained in:
Lovell Fuller
2022-06-29 11:41:36 +01:00
parent 7a8ab452c5
commit 81c74f57e0
2 changed files with 4 additions and 2 deletions

View File

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