mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Use the JPEG Plugin save instead of calling the ImageFile directly
This commit is contained in:
parent
04c1aee829
commit
4e9a8ef7d7
|
@ -149,7 +149,7 @@ def _save(im, fp, filename):
|
||||||
im.putdata(data)
|
im.putdata(data)
|
||||||
ImageFile._save(im, op, [("hex", (0,0)+im.size, 0, im.mode)])
|
ImageFile._save(im, op, [("hex", (0,0)+im.size, 0, im.mode)])
|
||||||
elif filter == "/DCTDecode":
|
elif filter == "/DCTDecode":
|
||||||
ImageFile._save(im, op, [("jpeg", (0,0)+im.size, 0, im.mode)])
|
Image.SAVE["JPEG"](im, op, filename)
|
||||||
elif filter == "/FlateDecode":
|
elif filter == "/FlateDecode":
|
||||||
ImageFile._save(im, op, [("zip", (0,0)+im.size, 0, im.mode)])
|
ImageFile._save(im, op, [("zip", (0,0)+im.size, 0, im.mode)])
|
||||||
elif filter == "/RunLengthDecode":
|
elif filter == "/RunLengthDecode":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user