加入分页,逆序排列帖子

This commit is contained in:
liuwei
2025-03-03 15:43:42 +08:00
parent 34607efd32
commit b003d605c7

View File

@@ -145,7 +145,7 @@ def fetch_and_create_pdf(url):
if image:
img = PILImage.open(image)
img_width, img_height = img.size
image_width = 500
image_width = 700
image_height = int((img_height / img_width) * image_width)
img_stream = BytesIO(image.getvalue())
content.append(Image(img_stream, width=image_width, height=image_height))