-
-
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
Enhancement: silently ignore embedded ICC profile with invalid PCS illuminant, will downgrade "Couldn't link the profiles" from error to warning #3895
Comments
The ICC profile embedded in this image is invalid as the PCS illuminant does not have the standard/required value of 50. Inspecting the binary data suggests the value might be I suspect a recent improvement in the underlying lcms2 is preventing the use of this profile, and you can use the sharp('1.jpg', { ignoreIcc: true })... |
Since I discovered this while using a global custom build of vips I initially thought this was related to the version of Did not know of |
Thanks, this probably relates to commit bb7469b Perhaps sharp should silently ignore the invalid profile, although the output might then be incorrect. Are you able to grant permission for me to add this image to sharp's test corpus if so? If you're using v0.33.0, you might want to use the new |
In my case that would be great!
That specific image i don't own the rights to. However I've produced a similar image with the same issue which you are free to use
Thank you for pointing this out, thats a great addition. |
v0.33.1 now available with this enhancement. |
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?
Try to do any conversion using
withMetadata()
on the image will result inVipsIcc: Couldn't link the profiles
errorI've tracked the issue down to 0.32.5, versions below works fine.
What is the expected behaviour?
That it succeeds without error
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem
Please provide sample image(s) that help explain this problem
The text was updated successfully, but these errors were encountered: