PIL cannot read RGBA tiffs with no ExtraSamples tag
Michael Babcock <[email protected]> Fri, 28 Oct 2011 09:14:33 -0700
| Newsgroups | gmane.comp.python.image |
|---|---|
| Message-ID | <[email protected]> |
Maya 2012 writes these kind of tiff files. There is an alpha channel,
but no ExtraSamples tag. Tracing the code, I believe adding a line such as
(II, 2, 1, 1, (8,8,8,8), ()): ("RGBA", "RGBa"),
to the OPEN_INFO dictionary in TiffImagePlugin.py would fix this. I'm
only guessing at the "1" default value for ExtraSamples because that's
what Maya used to add in older versions.
_______________________________________________
Image-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/image-sig