1
0
Fork 0
forked from josch/img2pdf

src/img2pdf.py: be more explicit when embedding group4 from TIFF

This commit is contained in:
Johannes 'josch' Schauer 2018-08-20 10:26:39 +02:00
parent b758b54ce8
commit 03bdc33053
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -942,7 +942,7 @@ def read_images(rawdata, colorspace, first_frame_only=False):
rawdata = bytes(rawdata) rawdata = bytes(rawdata)
else: else:
raise ValueError("unsupported FillOrder: %d" % fillorder) raise ValueError("unsupported FillOrder: %d" % fillorder)
logging.debug("read_images() embeds a TIFF") logging.debug("read_images() embeds Group4 from TIFF")
result.append((color, ndpi, ImageFormat.CCITTGroup4, rawdata, result.append((color, ndpi, ImageFormat.CCITTGroup4, rawdata,
imgwidthpx, imgheightpx, [], inverted, 1)) imgwidthpx, imgheightpx, [], inverted, 1))
img_page_count += 1 img_page_count += 1