fix tapas merging
This commit is contained in:
parent
39605578d7
commit
17b65bb26e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user