PIL: Transparent PNGs and im.paste: ValueError: bad transparency mask

Discussion in 'Python' started by Durand, Jul 10, 2008.

  1. Durand

    Durand Guest

    Hi!

    I'm trying to paste a png with a transparent layer into an image using "image.paste(tesla,(20,10), tesla)" but I'm getting this error:

    ValueError: bad transparency mask

    I have used im.paste(image,box,image) sucessfully before to paste an image with transparency, however, it doesn't seem to work for this particular image. How would I change the image so that it doesn't give me this error?

    The image is http://img293.imageshack.us/img293/1434/teslahv5.png

    Thanks in advance!
    Durand, Jul 10, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tiewknvc9

    transparent pngs to a movie???

    tiewknvc9, May 9, 2006, in forum: Java
    Replies:
    4
    Views:
    776
    tiewknvc9
    May 11, 2006
  2. jean-Baptiste Cazier

    Transparency with PIL and paste ?

    jean-Baptiste Cazier, Jul 23, 2003, in forum: Python
    Replies:
    0
    Views:
    630
    jean-Baptiste Cazier
    Jul 23, 2003
  3. Caleb Hattingh
    Replies:
    2
    Views:
    2,053
    Caleb Hattingh
    Dec 1, 2004
  4. Durand
    Replies:
    1
    Views:
    703
    Ken Starks
    Jul 11, 2008
  5. Marcin Tyman

    Conversion mask in hex to bit mask

    Marcin Tyman, May 6, 2008, in forum: Ruby
    Replies:
    4
    Views:
    801
    Robert Klemme
    May 6, 2008
Loading...

Share This Page