我想保存一张与原稿完全相同的图像,而不改变质量
当我在PillowPython中设置quality=100
时,保存的图像比原始图像少了5kB空间
如何保持尺寸?我正在从streams检索图像
from PIL import Image, ImageFilter
image = Image.open("image.jpg")
file_path = io.BytesIO();
image.save(file_path,'JPEG',quality=100);
file_path.seek(0);
image2 = Image.open(file_path)
image2.save("image_copy2.jpg",'JPEG');
目前没有回答
相关问题 更多 >
编程相关推荐