1
0
Fork 0
forked from josch/img2pdf

force colorspace for non jpeg200 too

This commit is contained in:
josch 2013-05-02 08:14:49 +02:00
parent c21c148daf
commit a1932f1cb2

View file

@ -103,7 +103,10 @@ def main(images, dpi, title=None, author=None, creator=None, producer=None,
else:
dpi_x, dpi_y = imgdata.info.get("dpi", (96, 96))
imgformat = imgdata.format
color = imgdata.mode
if colorspace:
color = colorspace
else:
color = imgdata.mode
if color == 'L':
color = "/DeviceGray"