Skip to content

Commit

Permalink
Removed unused decoders
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Aug 7, 2023
1 parent a70ea82 commit 5c59807
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/PIL/PdfImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,6 @@ def _write_image(im, filename, existing_pdf, image_refs):
elif filter == "JPXDecode":
del dict_obj["BitsPerComponent"]
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:
msg = f"unsupported PDF filter ({filter})"
raise ValueError(msg)

Check warning on line 149 in src/PIL/PdfImagePlugin.py

View check run for this annotation

Codecov / codecov/patch

src/PIL/PdfImagePlugin.py#L148-L149

Added lines #L148 - L149 were not covered by tests
Expand Down

0 comments on commit 5c59807

Please sign in to comment.