librelist archives

« back to archive

Re: [wand] RE: problem running code.

Re: [wand] RE: problem running code.

Mike Chung
2012-12-11 @ 18:26
Hmm I have set this to truebut when I do this
 with imgcopy.convert("PNG8") as myConverted:                        
myConverted.alpha_channel = True                        #print 
myConverted.format               ".png")
It appears that the final file saved when on my mac checking the file info
says its sRGB and the image space is RGB so I donno why the alpha channel 
is not being I using this incorrectly?
Date: Tue, 11 Dec 2012 23:30:16 +0900
Subject: Re: [wand] RE: problem running example code.

                    Image.alpha_channel [1] isn’t a method but a property,
so change the code to like this:
  img.alpha_channel = True
                On Tuesday, December 11, 2012 at 5:30 PM, Mike Chung wrote:

Has anyone had this error before I did a google search and the stack 
overflow answer did not apply to me.since I call this in a part of the 
code that contains just the image and nothing else.
def Test():    with Image(filename="Dead.jpg") as img:        

img.alpha_channel(True)TypeError: 'long' object is not callable
I am using version 0.30