mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Do not set ColorSpace for JPXDecode since it is optional
This commit is contained in:
parent
bc11b2d6a9
commit
c5b4ad94e8
|
@ -162,7 +162,6 @@ def _save(im, fp, filename, save_all=False):
|
|||
elif im.mode == "LA":
|
||||
filter = "JPXDecode"
|
||||
# params = f"<< /Predictor 15 /Columns {width-2} >>"
|
||||
colorspace = PdfParser.PdfName("DeviceGray")
|
||||
procset = "ImageB" # grayscale
|
||||
dict_obj["SMaskInData"] = 1
|
||||
elif im.mode == "P":
|
||||
|
|
Loading…
Reference in New Issue
Block a user