Merge pull request #6151 from radarhere/pdf

Do not mark L mode JPEG as 1 bit in PDF
This commit is contained in:
Hugo van Kemenade 2022-03-27 11:23:57 +03:00 committed by GitHub
commit 96a9776931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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} >>"