I am using python2/PIL to resize/overlay images. The images should be the same size without scaling but with and without scaling the result is the same: the background image has the right size and the foreground image is only a fourth of it. The saved image has the right size, the background too but the foreground I sonly a fourth of the whole image on the upper left. Why?
foregroundimage = Image.open(self.foregrund.new_foreground())
backgroundimage = Image.open(filename)
foregroundimage.thumbnail((highres_w,highres_h),Image.ANTIALIAS)
backgroundimage.thumbnail((highres_w,highres_h),Image.ANTIALIAS)
backgroundimage.paste(foregroundimage,(0,0),foregroundimage)
backgroundimage.save(outfilename)