Merge pull request #217 from angelnu/master

PdfImagePlugin: call JpegImagePlugin._save instead of FileImage
This commit is contained in:
Alex Clark ☺ 2013-05-11 17:44:56 -07:00
commit 72b94cbb94

View File

@ -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":