Compare commits

...

3 commits

Author SHA1 Message Date
Tamás Zahola
8dac6242fc Test cases for transparency 2021-06-19 18:54:32 +02:00
Tamás Zahola
9cd5121477 Test support on macOS 2021-06-19 18:53:45 +02:00
Tamás Zahola
6516339ae3 Always initialize smask 2021-06-19 18:49:21 +02:00
2 changed files with 425 additions and 167 deletions

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]

File diff suppressed because it is too large Load diff