mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-28 02:04:36 +03:00
Do not mark L mode JPEG as 1 bit
This commit is contained in:
parent
a6a843e548
commit
bde3086592
|
@ -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