From c0f839b71f2fbc283b0b9d291a982de1996fd7e5 Mon Sep 17 00:00:00 2001 From: liuwei Date: Mon, 26 May 2025 10:10:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=8F=A5=E6=9F=84=E5=8D=A0?= =?UTF-8?q?=E7=94=A8=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/xiuren_image/xiuren_pdf.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugins/xiuren_image/xiuren_pdf.py b/plugins/xiuren_image/xiuren_pdf.py index 877de9b..b37b52f 100644 --- a/plugins/xiuren_image/xiuren_pdf.py +++ b/plugins/xiuren_image/xiuren_pdf.py @@ -77,9 +77,6 @@ def create_pdf_from_images(directory, output_pdf): # 创建图片列表 image_list = [] for image_file in image_files: - # 使用Pillow获取图片尺寸 - with PILImage.open(image_file) as img: - img_width, img_height = img.size # 压缩图片到~300KB compressed_image_data = compress_image(image_file)