Skip to content

Commit 21a9607

Browse files
committed
Ignore greyscale ICC profiles due to lcms bug #3112
1 parent fc3b4a6 commit 21a9607

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

docs/changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ Requires libvips v8.12.2
1616
[#3110](https://github.com/lovell/sharp/pull/3110)
1717
[@kleisauke](https://github.com/kleisauke)
1818

19+
* Temporarily ignore greyscale ICC profiles to workaround lcms bug.
20+
[#3112](https://github.com/lovell/sharp/issues/3112)
21+
1922
### v0.30.1 - 9th February 2022
2023

2124
* Allow use of `toBuffer` and `toFile` on the same instance.

src/pipeline.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,8 @@ class PipelineWorker : public Napi::AsyncWorker {
292292
if (
293293
sharp::HasProfile(image) &&
294294
image.interpretation() != VIPS_INTERPRETATION_LABS &&
295-
image.interpretation() != VIPS_INTERPRETATION_GREY16
295+
image.interpretation() != VIPS_INTERPRETATION_GREY16 &&
296+
image.interpretation() != VIPS_INTERPRETATION_B_W
296297
) {
297298
// Convert to sRGB/P3 using embedded profile
298299
try {

0 commit comments

Comments
 (0)