[Image-SIG] Problem with psd and Alpha
edward at unicornschool.org
Sat Aug 14 22:07:52 CEST 2010
I seem to remember that there are two versions of the psd file format,
a newer version and a version used with the numbered versions. Is your
file a newer or older version? also, have you verified that the alpha
channel is there by opening the file in another program (ie
On Thu, Aug 5, 2010 at 1:42 AM, Martino Massalini
<massalinimartino at gmail.com> wrote:
> Hi, i'm tryng to composite several psd coming from my render software.
> Each one is a psd with the same size of the others and an alpha channel.
> The problem is when i do
> im = Image.open("filepath")
> I alway get a "RGB" image instead of "RGBA" so i can't use the alpha channel
> as mask when i compose the image.
> Here some snippet:
>>>> im = Image.open("prova0000.psd")
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/Library/Python/2.5/site-packages/PIL/Image.py", line 1497, in split
> if self.im.bands == 1:
> AttributeError: 'NoneType' object has no attribute 'bands'
> <PixelAccess object at 0x52160>
> '<ImagingCore object at 0x520f0>'
> (<Image.Image image mode=L size=146x90 at 0x42C7B0>, <Image.Image image
> mode=L size=146x90 at 0x42C828>, <Image.Image image mode=L size=146x90 at
> Image-SIG maillist - Image-SIG at python.org
More information about the Image-SIG