我希望以与原始图像完全相同的质量存储图像,不做任何质量上的变化。在Pillow Python中设置
quality=100
时,保存的图像比原始图像少了5kB的空间。我该如何保留大小?我正在从流中检索图像。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');