Don't try to run jbig2 when not available
This commit is contained in:
@@ -133,7 +133,7 @@ def extract_image(*, doc, pike, root, log, image, xref, jbig2s,
|
||||
return False
|
||||
filtdp = filtdps[0]
|
||||
|
||||
if bpc == 1 and filtdp[0] != '/JBIG2Decode':
|
||||
if bpc == 1 and filtdp[0] != '/JBIG2Decode' and jbig2enc.available():
|
||||
if filtdp[0] == '/CCITTFaxDecode':
|
||||
data = image.read_raw_bytes()
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user