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"
|
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)
|
||||||
|
|
Loading…
Reference in a new issue