1
0
Fork 0
forked from josch/img2pdf

CCITTGroup4 must return empty palette

This commit is contained in:
Johannes 'josch' Schauer 2018-07-18 00:57:43 +02:00
parent ce68cb21d7
commit 48d5b4d7af
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -820,7 +820,7 @@ def read_images(rawdata, colorspace, first_frame_only=False):
ccittdata = transcode_monochrome(imgdata)
imgformat = ImageFormat.CCITTGroup4
result.append((color, ndpi, imgformat, ccittdata,
imgwidthpx, imgheightpx))
imgwidthpx, imgheightpx, []))
img_page_count += 1
continue
except Exception as e: