Spread labels support left to right (#1428)

This commit is contained in:
Alex Xu authored and GitHub committed 2026-08-28 14:38:22 -07:00
1 parent fc331d4e19
commit a503f54f9f
2 files changed
+9 -4

No files matched your search

+2
View File
@@ -1859,6 +1859,8 @@ def makeBook(source, qtgui=None, job_progress=''):
if i in data['spreads']:
im1 = Image.open(os.path.join(root, sorted_files[i]))
im2 = Image.open(os.path.join(root, sorted_files[i+1]))
if not options.righttoleft:
im1, im2 = im2, im1
dst = Image.new('RGB', (im1.width + im2.width, im1.height))
dst.paste(im2, (0, 0))
dst.paste(im1, (im1.width, 0))