TODO: CCITTFaxDecode
This commit is contained in:
parent
a1932f1cb2
commit
36c33dc5cf
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue