Skip to content

Commit

Permalink
Do not set ColorSpace for JPXDecode since it is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Aug 4, 2023
1 parent bc11b2d commit c5b4ad9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/PIL/PdfImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit c5b4ad9

Please sign in to comment.