mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 03:21:44 +03:00
Removed unused decoders
This commit is contained in:
parent
a70ea82eb5
commit
5c59807216
|
@ -144,10 +144,6 @@ def _write_image(im, filename, existing_pdf, image_refs):
|
||||||
elif filter == "JPXDecode":
|
elif filter == "JPXDecode":
|
||||||
del dict_obj["BitsPerComponent"]
|
del dict_obj["BitsPerComponent"]
|
||||||
Image.SAVE["JPEG2000"](im, op, filename)
|
Image.SAVE["JPEG2000"](im, op, filename)
|
||||||
elif filter == "FlateDecode":
|
|
||||||
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)])
|
|
||||||
else:
|
else:
|
||||||
msg = f"unsupported PDF filter ({filter})"
|
msg = f"unsupported PDF filter ({filter})"
|
||||||
raise ValueError(msg)
|
raise ValueError(msg)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user