optimize: Remove shim for unsupported pikepdf version

This commit is contained in:
James R. Barlow
2021-01-31 00:08:20 -08:00
parent 46d0632fe2
commit a9ad805347
-5
View File
@@ -150,11 +150,6 @@ def extract_image_generic(
if pim.bits_per_component == 1:
return None
try:
pim.indexed # pikepdf 1.6.3 can't handle [/Indexed [/Array...]]
except NotImplementedError:
return None
if filtdp[0] == Name.DCTDecode and options.optimize >= 2:
# This is a simple heuristic derived from some training data, that has
# about a 70% chance of guessing whether the JPEG is high quality,