aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/Pillow/py3/PIL/PdfImagePlugin.py
diff options
context:
space:
mode:
authorkickbutt <kickbutt@yandex-team.com>2024-01-23 23:36:43 +0300
committerAlexander Smirnov <alex@ydb.tech>2024-01-24 15:02:13 +0300
commit299dc21a6f70a16b00e1d564fa56961331552415 (patch)
tree183f498a2e98a04f9a6143a11006ba0c10f867f3 /contrib/python/Pillow/py3/PIL/PdfImagePlugin.py
parent5ccb6ae864be6b53df427dc3a0fa14dbb95aa11c (diff)
downloadydb-299dc21a6f70a16b00e1d564fa56961331552415.tar.gz
Fix separator in CUDA_ARCHITECTURES
Diffstat (limited to 'contrib/python/Pillow/py3/PIL/PdfImagePlugin.py')
-rw-r--r--contrib/python/Pillow/py3/PIL/PdfImagePlugin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/python/Pillow/py3/PIL/PdfImagePlugin.py b/contrib/python/Pillow/py3/PIL/PdfImagePlugin.py
index 09fc0c7e6c..3506aadce8 100644
--- a/contrib/python/Pillow/py3/PIL/PdfImagePlugin.py
+++ b/contrib/python/Pillow/py3/PIL/PdfImagePlugin.py
@@ -19,6 +19,7 @@
##
# Image plugin for PDF images (output only).
##
+from __future__ import annotations
import io
import math
@@ -96,7 +97,7 @@ def _write_image(im, filename, existing_pdf, image_refs):
dict_obj["ColorSpace"] = [
PdfParser.PdfName("Indexed"),
PdfParser.PdfName("DeviceRGB"),
- 255,
+ len(palette) // 3 - 1,
PdfParser.PdfBinary(palette),
]
procset = "ImageI" # indexed color