-
Notifications
You must be signed in to change notification settings - Fork 80
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
TIFF files with unassociated extra samples are unsupported. #183
Comments
Do you know where specifically the error is coming from? GrayA is listed as a supported color type and I believe that most of the code doesn't care how many samples per pixel there are. |
It seems, imagemagick does not encode it as a truly alpha component but as a mask:
This is probably intended in this case ( The library doesn't guess the meaning of extra channels and unassociated extra samples aren't supported. |
I guess this is the same issue?
If so, is the solution to change the check to "at least 3 channels" and just use the first 3 channels? Triggered by Transparency_example.tiff generated via https://www.freeconvert.com Downstream issue https://gitlab.gnome.org/sophie-h/glycin/-/issues/78 |
|
Maybe we can just use SamplesPerPixel – ExtraSamples as a default and special-case (1) where the premultiplication has to be undone? (Haven't looked at the code yet.)
|
TIFF files with 2 samples per pixel (Luminance + Alpha) are unsupported by this library.
Such TIFF files are the default output of imagemagick if the input is grayscale.
Attached is an example.
example_tiff.zip
The text was updated successfully, but these errors were encountered: