TODO: CCITTFaxDecode

This commit is contained in:
josch 2013-05-02 08:15:18 +02:00
parent a1932f1cb2
commit 36c33dc5cf

View file

@ -112,6 +112,10 @@ def main(images, dpi, title=None, author=None, creator=None, producer=None,
color = "/DeviceGray" color = "/DeviceGray"
elif color == 'RGB': elif color == 'RGB':
color = "/DeviceRGB" color = "/DeviceRGB"
elif color == '1':
# TODO: /CCITTFaxDecode monochrome images
imgdata = imgdata.convert('L')
color = "/DeviceGray"
else: else:
print "unsupported color space:", color print "unsupported color space:", color
exit(1) exit(1)