Alec Bennett wrote:
> Hmm, still getting a black box. The code as it stands now in case
> anything jumps out at you:

> # open the pic and give it an alpha channel so it's transparent
> im1 = Image.open("pic1.jpg")
> im1.convert('RGBA')

That should be

im1 = Image.open("pic1.jpg")
im1 = im1.convert('RGBA')
^^^^^
or more concisely

im1 = Image.open("pic1.jpg").convert('RGBA')

Like most PIL methods, convert() returns the modified image, leaving the
original one as is.


douglas

_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to