forked from josch/img2pdf
Always initialize smask
This commit is contained in:
parent
f62858c245
commit
2476215f39
1 changed files with 2 additions and 0 deletions
|
@ -858,6 +858,8 @@ class pdfdoc(object):
|
||||||
image[PdfName.ColorSpace] = colorspace
|
image[PdfName.ColorSpace] = colorspace
|
||||||
image[PdfName.BitsPerComponent] = depth
|
image[PdfName.BitsPerComponent] = depth
|
||||||
|
|
||||||
|
smask = None
|
||||||
|
|
||||||
if color == Colorspace["CMYK;I"]:
|
if color == Colorspace["CMYK;I"]:
|
||||||
# Inverts all four channels
|
# Inverts all four channels
|
||||||
image[PdfName.Decode] = [1, 0, 1, 0, 1, 0, 1, 0]
|
image[PdfName.Decode] = [1, 0, 1, 0, 1, 0, 1, 0]
|
||||||
|
|
Loading…
Reference in a new issue