We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0db0607 commit e2eaa8aCopy full SHA for e2eaa8a
sphinx_runpython/tools/img_export.py
@@ -31,7 +31,7 @@ def images2pdf(
31
32
python -m img2pdf --output doc.pdf img/* -S A4 --auto-orient
33
"""
34
- from img2pdf import convert, Rotation
+ from img2pdf import convert, Rotation, default_layout_fun
35
36
if isinstance(images, str):
37
if "," in images:
@@ -68,7 +68,7 @@ def images2pdf(
68
)
69
70
all_images.sort()
71
- layout_fun = None
+ layout_fun = default_layout_fun
72
if zoom != 1 or rotate != 0:
73
# See https://github.com/myollie/img2pdf/blob/master/src/img2pdf.py
74
from PIL import Image
0 commit comments