From 958e377a87a1957378cd349609bb06c88f468ba0 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Thu, 26 Dec 2013 23:05:22 +0400 Subject: [PATCH] Corrected paste for png files. --- paste.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paste.py b/paste.py index d3bde59..6904333 100755 --- a/paste.py +++ b/paste.py @@ -15,7 +15,7 @@ try: im = Image.open(infile) im_watermark = Image.open(watermark) im = im.convert() - im.paste(im_watermark, (im.size[0] // 2 - im_watermark.size[0] // 2, im.size[1] // 2 - im_watermark.size[1] // 2)) + im.paste(im_watermark, (im.size[0] // 2 - im_watermark.size[0] // 2, im.size[1] // 2 - im_watermark.size[1] // 2), im_watermark) im.save(infile, "JPEG", quality=100) except IOError: print("cannot create thumbnail for '%s'" % infile)