Re: With PIL... paste image on top of other with dropshadow

2007-02-23 Thread Matimus
two things, change the following line: [code] back = Image.new(image.mode, (totalWidth, totalHeight), background) [/code] To: [code] back = Image.new("RGBA", (totalWidth, totalHeight), background) [/code] and then do something like this: [code] import sys bg = Image.open(sys.argv[1]) i

With PIL... paste image on top of other with dropshadow

2007-02-23 Thread Peter Bengtsson
I love the dropshadow effect I managed to make with this recipe: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/474116 Here's what it can look like: http://www.peterbe.com/test/188-tequilacat.2.jpg It takes a background as a parameter but it's just a colour. What I want is to put the ima