Spaces:
Paused
Paused
Update processor_utils.py
Browse files- processor_utils.py +2 -1
processor_utils.py
CHANGED
|
@@ -18,7 +18,8 @@ def load_input(file_path):
|
|
| 18 |
|
| 19 |
images = []
|
| 20 |
for page in doc:
|
| 21 |
-
pix = page.get_pixmap()
|
|
|
|
| 22 |
img = Image.frombytes("RGB", [pix.width, pix.height], pix.samples)
|
| 23 |
images.append(img)
|
| 24 |
|
|
|
|
| 18 |
|
| 19 |
images = []
|
| 20 |
for page in doc:
|
| 21 |
+
# pix = page.get_pixmap() change on 8/5/26
|
| 22 |
+
pix = page.get_pixmap(dpi=220, alpha=False)
|
| 23 |
img = Image.frombytes("RGB", [pix.width, pix.height], pix.samples)
|
| 24 |
images.append(img)
|
| 25 |
|