fix tapas merging

This commit is contained in:
bakatrouble 2019-04-11 02:48:21 +03:00
parent 39605578d7
commit 17b65bb26e

View File

@ -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: