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,7 +103,10 @@ 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
|
||||||
color = imgdata.mode
|
if colorspace:
|
||||||
|
color = colorspace
|
||||||
|
else:
|
||||||
|
color = imgdata.mode
|
||||||
|
|
||||||
if color == 'L':
|
if color == 'L':
|
||||||
color = "/DeviceGray"
|
color = "/DeviceGray"
|
||||||
|
|
Loading…
Reference in a new issue