Skip to content

Commit

Permalink
Removed unused RunLengthDecode
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Aug 7, 2023
1 parent 3378266 commit 7775b1b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/PIL/PdfImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ def _write_image(im, filename, existing_pdf, image_refs):
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)
Expand Down

0 comments on commit 7775b1b

Please sign in to comment.