I want to combine 2 images and this is also in a specific place of the 1st image.
Example: 1st image: x.png(400 x 400 pixels) 2nd image: y.png(in coordinates 100,100)
x.png
y.png
100,100
How can I do this using python in google appengine.?
If you can provide some codes for this ... or any link to this code ... will be appreciated.
Thank you, Please let me know for clarification.
, , PIL.
from google.appengine.api import images xpng = #Load data from x.png here, or read from BlobProperty ypng = #Load data from y.png here, or read from BlobProperty composite = images.composite([(xpng, 0, 0, 1.0, images.TOP_LEFT), (ypng, 100, 100, 1.0, images.TOP_LEFT)], 400, 400) #composite now holds your new image data, to do what you want with
composite : .
composite
You can look at the composite module in google images api.If it does not work. It is also worth a try. This uses the Image module in python
import Image image1 = Image.open("#imageurl") iamge2 = Image.open("#imageurl") image1.paste(image2, (0, 0), image2)