Compare commits

..

No commits in common. "e2aa5e5aca6a070aefc12ef810595d3f938dba42" and "8839129d6b1b90eb612beef7213a470c9bb0452e" have entirely different histories.

View file

@ -826,9 +826,7 @@ class pdfdoc(object):
elif color == Colorspace.CMYK or color == Colorspace["CMYK;I"]: elif color == Colorspace.CMYK or color == Colorspace["CMYK;I"]:
iccpdict[PdfName.N] = 4 iccpdict[PdfName.N] = 4
elif color == Colorspace.P: elif color == Colorspace.P:
# Only the png format can have an icc profile as well as a raise Exception("Cannot have Palette images with ICC profile")
# color palette. A png palette is always RGB.
iccpdict[PdfName.N] = 3
colorspace = [PdfName.ICCBased, iccpdict] colorspace = [PdfName.ICCBased, iccpdict]
# either embed the whole jpeg or deflate the bitmap representation # either embed the whole jpeg or deflate the bitmap representation