How do you composite an image onto another image with PIL in Python?

Posted by Sebastian on Stack Overflow See other posts from Stack Overflow or by Sebastian
Published on 2010-04-01T21:29:45Z Indexed on 2010/04/01 21:33 UTC
Read the original article Hit count: 312

Filed under:
|
|

I need to take an image and place it onto a new, generated white background in order for it to be converted into a downloadable desktop wallpaper. So the process would go:

1) Generate new, all white image with 1440x900 dimensions
2) Place existing image on top, centered
3) Save as single image

In PIL, I see the ImageDraw object, but nothing indicates it can draw existing image data onto another image. Suggestions or links anyone can recommend?

© Stack Overflow or respective owner

Related posts about python

Related posts about image-processing