forked from josch/img2pdf
force colorspace for non jpeg200 too
This commit is contained in:
parent
c21c148daf
commit
a1932f1cb2
1 changed files with 4 additions and 1 deletions
|
@ -103,6 +103,9 @@ 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
|
||||
if colorspace:
|
||||
color = colorspace
|
||||
else:
|
||||
color = imgdata.mode
|
||||
|
||||
if color == 'L':
|
||||
|
|
Loading…
Reference in a new issue