Revert "allow palette PNG images with ICC profile (closes: #107)"
This reverts commit 3d7e0e6812
.
This commit is contained in:
parent
1ffb160453
commit
e265738ac2
1 changed files with 1 additions and 3 deletions
|
@ -829,9 +829,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
|
||||||
|
|
Loading…
Reference in a new issue