Re: Extending a image and adding text on the extended area using python pil

2017-04-08 Thread ludovic coues
Look like a question for the pil mailing list. Anyway, stackoverflow suggest that you create a new image then paste the old image onto the new one. Here is the code from stackoverflow newImage = Image.new(mode, (newWidth,newHeight)) newImage.paste(srcImage, (x1,y1,

Extending a image and adding text on the extended area using python pil

2017-04-08 Thread Aamu Padi
I am creating QRcode for each ticket. The QRcode is in image format. ​I want to extend this image vertically on both the sides (i.e. Top and Bottom). And in the extended area I want to add some additional data like this: Theater Name _ || |