📜  压缩图像枕头 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:23.714000             🧑  作者: Mango

代码示例1
from PIL import Image
b = Book.objects.get(title='Into the wild')
image = Image.open(b.cover_pic.path)
image.save(b.image.path,quality=20,optimize=True)