diff --git a/src/PIL/PdfImagePlugin.py b/src/PIL/PdfImagePlugin.py index fb3bac2ee..07f67d465 100644 --- a/src/PIL/PdfImagePlugin.py +++ b/src/PIL/PdfImagePlugin.py @@ -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":