mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 08:12:33 +03:00
Merge pull request #6151 from radarhere/pdf
Do not mark L mode JPEG as 1 bit in PDF
This commit is contained in:
commit
96a9776931
|
@ -127,7 +127,6 @@ def _save(im, fp, filename, save_all=False):
|
||||||
filter = "DCTDecode"
|
filter = "DCTDecode"
|
||||||
colorspace = PdfParser.PdfName("DeviceGray")
|
colorspace = PdfParser.PdfName("DeviceGray")
|
||||||
procset = "ImageB" # grayscale
|
procset = "ImageB" # grayscale
|
||||||
bits = 1
|
|
||||||
elif im.mode == "L":
|
elif im.mode == "L":
|
||||||
filter = "DCTDecode"
|
filter = "DCTDecode"
|
||||||
# params = f"<< /Predictor 15 /Columns {width-2} >>"
|
# params = f"<< /Predictor 15 /Columns {width-2} >>"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user