From 48d5b4d7af331bd3fd05a707eb3a389ccc06351d Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Wed, 18 Jul 2018 00:57:43 +0200 Subject: [PATCH] CCITTGroup4 must return empty palette --- src/img2pdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/img2pdf.py b/src/img2pdf.py index 29522ba..4632c7a 100755 --- a/src/img2pdf.py +++ b/src/img2pdf.py @@ -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: