You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From doing some investigation Photoshop tells me the problem image has an invalid ICC profile, and removing it before processing the image does mean the code completes successfully.
Is there a way of detecting whether the profile is compatible with the image, icc_import succeeds (The number of bands changes from 3 to 5).
Thanks in advance.
The text was updated successfully, but these errors were encountered:
I had a quick look -- your image has three bands, even though it's black and white. I guess someone saved as RGB at some point in the past. The profile on the image is still monochrome.
When icc_import runs it sees a three-band image plus a mono profile and decides you probably have a mono image with two alpha channels (ie. GAA). That gets turned into LAB, so LABAA, so five bands.
Maybe we could tune the rules it uses a little -- GAA has to be pretty unusual, so RGB might be a better guess. Let's leave this issue open as an enhancement.
Hello,
I'm running the code below and getting an error (albeit only with this image...so far)
libvips error: composite: images do not have same numbers of bands
From doing some investigation Photoshop tells me the problem image has an invalid ICC profile, and removing it before processing the image does mean the code completes successfully.
Is there a way of detecting whether the profile is compatible with the image, icc_import succeeds (The number of bands changes from 3 to 5).
Thanks in advance.
The text was updated successfully, but these errors were encountered: