From 17b65bb26ef9e25722b1c66a54b8a2f56d298503 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Thu, 11 Apr 2019 02:48:21 +0300 Subject: [PATCH] fix tapas merging --- feeds/modules/tapas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/feeds/modules/tapas.py b/feeds/modules/tapas.py index 92a87a4..f852861 100644 --- a/feeds/modules/tapas.py +++ b/feeds/modules/tapas.py @@ -65,8 +65,8 @@ class TapasFeedModuleConfig(FeedModuleConfig): new_im = Image.new('RGB', (max_width, total_height)) offset = 0 for im in ims: - new_im.paste(im, (offset, 0)) - offset += im.size[0] + new_im.paste(im, (0, offset)) + offset += im.size[1] new_im_path = os.path.join(d, 'combined.jpg') new_im.save(new_im_path) with open(new_im_path, 'rb') as f: