-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] sharp v0.30.0+ greyscale images with an embedded ICC profile change white pixels to dark grey #3112
Comments
Hi, thanks for reporting, I can reproduce with the supplied input image using The input image is 8-bit greyscale with an embedded ICC profile that appears to be valid for such an image.
The input image undergoes an ICC transform via lcms (Little CMS) using its embedded profile, which is where things go wrong. sharp v0.29.x provides lcms 2.12 whereas sharp v0.30.x provides lcms 2.13 so we're probably seeing the effects of the following upstream bug: https://bugs.archlinux.org/task/73580 |
Commit 21a9607 temporarily ignores greyscale ICC profiles. We can revert this to re-introduce support later after we pick up a newer version of lcms with the upstream bug fix. |
Created #3114 as a reminder to revert this temporary workaround later. |
v0.30.2 now available with a quick fix for this, thanks again for reporting. |
Possible bug
Is this a possible bug in a feature of sharp, unrelated to installation?
npm install sharp
completes without error.node -e "require('sharp')"
completes without error.If you cannot confirm both of these, please open an installation issue instead.
Are you using the latest version of sharp?
sharp
as reported bynpm view sharp dist-tags.latest
.If you cannot confirm this, please upgrade to the latest version and try again before opening an issue.
If you are using another package which depends on a version of
sharp
that is not the latest, please open an issue against that package instead.What is the output of running
npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp
?What are the steps to reproduce?
in.jpg
in.jpg
with the following snippet:What is the expected behaviour?
You can see the image is filled with lots of grey area, tainting ( not sure if this is the right word ) the image. It should just resize the image instead of filling the image with grey area.
Notice that this happens after
v0.30.0+
( so bothv0.30.0
&v0.30.1
suffered from this problem ), but not in the version before that.v0.29.3
does not have this problem, it can convert the image normally.Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem
( Check the "how to reproduce" section )
Please provide sample image(s) that help explain this problem
( Check the "how to reproduce" section )
The text was updated successfully, but these errors were encountered: