Skip to content

Commit

Permalink
Merge pull request #6151 from radarhere/pdf
Browse files Browse the repository at this point in the history
Do not mark L mode JPEG as 1 bit in PDF
  • Loading branch information
hugovk committed Mar 27, 2022
2 parents a7a85ca + bde3086 commit 96a9776
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/PIL/PdfImagePlugin.py
Expand Up @@ -127,7 +127,6 @@ def _save(im, fp, filename, save_all=False):
filter = "DCTDecode"
colorspace = PdfParser.PdfName("DeviceGray")
procset = "ImageB" # grayscale
bits = 1
elif im.mode == "L":
filter = "DCTDecode"
# params = f"<< /Predictor 15 /Columns {width-2} >>"
Expand Down

0 comments on commit 96a9776

Please sign in to comment.