Skip to content

Commit

Permalink
optimize: fix handling of [/FlateDecode none] - type images
Browse files Browse the repository at this point in the history
Closes #1271
  • Loading branch information
jbarlow83 committed Apr 7, 2024
1 parent 7a8cc21 commit b4db1b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ocrmypdf/optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def extract_image_filter(
if (
len(pim.filter_decodeparms) == 2
and first_filtdp[0] == Name.FlateDecode
and first_filtdp[1] is not None
and first_filtdp[1].get(Name.Predictor, 1) == 1
and second_filtdp[0] == Name.DCTDecode
and not second_filtdp[1]
Expand Down

0 comments on commit b4db1b7

Please sign in to comment.