mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-14 01:04:45 +03:00
Update PdfImagePlugin.py
PDF FlateDecode add params
This commit is contained in:
parent
61d31d0597
commit
2bdcd00527
|
@ -194,6 +194,13 @@ def _save(im, fp, filename, save_all=False):
|
|||
elif filter == "DCTDecode":
|
||||
Image.SAVE["JPEG"](im, op, filename)
|
||||
elif filter == "FlateDecode":
|
||||
params = PdfParser.PdfDict(
|
||||
{
|
||||
"Predictor": 15,
|
||||
"Columns": width,
|
||||
"Colors": 3,
|
||||
}
|
||||
)
|
||||
ImageFile._save(im, op, [("zip", (0, 0) + im.size, 0, im.mode)])
|
||||
elif filter == "RunLengthDecode":
|
||||
ImageFile._save(im, op, [("packbits", (0, 0) + im.size, 0, im.mode)])
|
||||
|
|
Loading…
Reference in New Issue
Block a user