mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Merge pull request #217 from angelnu/master
PdfImagePlugin: call JpegImagePlugin._save instead of FileImage
This commit is contained in:
commit
72b94cbb94
|
@ -149,7 +149,7 @@ def _save(im, fp, filename):
|
|||
im.putdata(data)
|
||||
ImageFile._save(im, op, [("hex", (0,0)+im.size, 0, im.mode)])
|
||||
elif filter == "/DCTDecode":
|
||||
ImageFile._save(im, op, [("jpeg", (0,0)+im.size, 0, im.mode)])
|
||||
Image.SAVE["JPEG"](im, op, filename)
|
||||
elif filter == "/FlateDecode":
|
||||
ImageFile._save(im, op, [("zip", (0,0)+im.size, 0, im.mode)])
|
||||
elif filter == "/RunLengthDecode":
|
||||
|
|
Loading…
Reference in New Issue
Block a user