memory problem with list creation

2010-01-13 Thread Allard Warrink
Within a python script I'm using a couple of different lists containing a large number of floats (+8M). The execution of this script fails because of an memory error (insufficient memory). I thought this was strange because I delete all lists that are not longer necessary directly and my

PIL transparency gradient

2008-03-01 Thread Allard Warrink
I would like to create a transparency gradient over an image using PIL. But I don't have a clue how to do this... Is there anyone out here who could give me some advise? -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL transparency gradient

2008-03-01 Thread Allard Warrink
Thanks for the inspiration! This what I did (Using your Python Editor (SPE), I really like to work with SPE, keep up the good work!!): # import Image, os p = # path to image file im = Image.open(p) # check if im has Alpha band... if im.mode != 'RGBA':