From 36c33dc5cf1ed7456ad6f771beace23077ee3306 Mon Sep 17 00:00:00 2001 From: josch Date: Thu, 2 May 2013 08:15:18 +0200 Subject: [PATCH] TODO: CCITTFaxDecode --- img2pdf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/img2pdf.py b/img2pdf.py index 3c19d89..f00c4ae 100644 --- a/img2pdf.py +++ b/img2pdf.py @@ -112,6 +112,10 @@ def main(images, dpi, title=None, author=None, creator=None, producer=None, color = "/DeviceGray" elif color == 'RGB': color = "/DeviceRGB" + elif color == '1': + # TODO: /CCITTFaxDecode monochrome images + imgdata = imgdata.convert('L') + color = "/DeviceGray" else: print "unsupported color space:", color exit(1)