摘要: 1 import os 2 from PIL import Image, ImageDraw, ImageFont 3 4 5 def add_text_to_image(image, text): 6 font = ImageFont.truetype('C:\Windows\Fonts\Adob 阅读全文
posted @ 2020-10-11 11:06 jum_blog 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 1 import base64 2 import io 3 import os 4 from PIL import Image 5 from PIL import ImageFile 6 7 8 # 压缩图片文件 9 def compress_image(outfile, mb=600, quali 阅读全文
posted @ 2020-10-11 11:03 jum_blog 阅读(3195) 评论(0) 推荐(0) 编辑

载入天数...载入时分秒...