optimize: fix handling of [/FlateDecode none] - type images

Closes #1271
This commit is contained in:
James R. Barlow
2024-04-07 01:44:08 -07:00
parent 7a8cc21e31
commit b4db1b741f
+1
View File
@@ -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]