摘要: from PIL import Image # 1寸照片的尺寸(单位:像素,这里以300dpi为例) width = 295 height = 413 # 打开原始图片 image = Image.open('your_image.jpg') # 计算缩放比例 image_width, image_ 阅读全文
posted @ 2024-11-08 11:12 lytcreate 阅读(130) 评论(0) 推荐(0)