加入分页,逆序排列帖子
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user