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,6 +103,9 @@ def main(images, dpi, title=None, author=None, creator=None, producer=None,
else: else:
dpi_x, dpi_y = imgdata.info.get("dpi", (96, 96)) dpi_x, dpi_y = imgdata.info.get("dpi", (96, 96))
imgformat = imgdata.format imgformat = imgdata.format
if colorspace:
color = colorspace
else:
color = imgdata.mode color = imgdata.mode
if color == 'L': if color == 'L':