mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Merge pull request #7317 from radarhere/pdf_alpha
Set SMaskInData to 1 for LA PDFs
This commit is contained in:
commit
fc99a5871e
|
@ -162,8 +162,8 @@ 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":
|
||||
filter = "ASCIIHexDecode"
|
||||
palette = im.getpalette()
|
||||
|
|
Loading…
Reference in New Issue
Block a user