Colorize image while preserving transparency with PIL?
Note: There’s a Python 3/pillow fork of PIL version of this answer here. Update 4: Guess the previous update to my answer wasn’t the last one after all. Although converting it to use PIL exclusively was a major improvement, there were a couple of things that seemed like there ought to be better, less awkward, … Read more