摘要:
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 阅读全文
摘要:
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 阅读全文