调整色花堂PDF格式

This commit is contained in:
liuwei
2025-03-03 15:26:41 +08:00
parent e8696faeb8
commit be27e440c7

View File

@@ -169,7 +169,7 @@ def fetch_and_create_pdf(url):
if image:
img = PILImage.open(image)
img_width, img_height = img.size
image_width = 400 # 固定宽度
image_width = 500 # 固定宽度
image_height = int((img_height / img_width) * image_width)
img_stream = BytesIO(image.getvalue())