1
0
Fork 0
forked from josch/img2pdf

Always initialize smask

This commit is contained in:
Tamás Zahola 2021-06-19 18:49:21 +02:00 committed by Gogs
parent f62858c245
commit 2476215f39

View file

@ -858,6 +858,8 @@ class pdfdoc(object):
image[PdfName.ColorSpace] = colorspace
image[PdfName.BitsPerComponent] = depth
smask = None
if color == Colorspace["CMYK;I"]:
# Inverts all four channels
image[PdfName.Decode] = [1, 0, 1, 0, 1, 0, 1, 0]