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)