调整色花堂PDF格式
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user