James R. Barlow
1c89cacfef
Respect host-set PIL.Image.MAX_IMAGE_PIXELS in Python API
...
The API previously clobbered PIL.Image.MAX_IMAGE_PIXELS unconditionally
on every call, so host applications (e.g. Paperless-NGX) that configured
the PIL limit before invoking ocrmypdf.ocr() saw their setting silently
overwritten with the 250 MP default. Make max_image_mpixels default to
None and only apply the override when the caller explicitly sets it.
The CLI default of 250 MP is unchanged.
Fixes #1665
2026-04-19 13:44:57 -07:00
..
2026-01-10 16:30:25 -08:00
2026-01-13 01:50:57 -08:00
2026-01-06 13:46:11 -08:00
2023-04-14 02:19:19 -07:00
2026-04-04 01:59:57 -07:00
2026-01-13 01:50:57 -08:00
2025-12-21 12:21:47 -08:00
2026-02-20 17:10:57 -08:00
2023-04-14 00:45:34 -07:00
2024-10-27 11:55:22 -07:00
2024-01-02 16:28:22 -08:00
2026-01-27 14:01:30 -08:00
2026-01-31 13:01:04 -08:00
2026-02-17 23:34:33 -08:00
2024-10-27 11:55:22 -07:00
2026-01-20 21:37:13 -08:00
2026-01-06 13:46:11 -08:00
2023-10-24 00:54:31 -07:00
2023-09-23 15:05:04 -07:00
2026-02-17 21:55:49 -08:00
2023-11-09 16:02:41 -08:00
2026-01-06 13:46:11 -08:00
2026-01-27 14:04:52 -08:00
2026-01-06 13:46:11 -08:00
2026-01-27 14:04:52 -08:00
2026-01-12 10:11:14 -08:00
2025-12-21 17:05:49 -08:00
2026-01-12 10:11:14 -08:00
2026-01-12 23:37:54 -08:00
2026-01-20 10:44:25 -08:00
2026-01-21 00:22:26 -08:00
2025-12-21 12:21:46 -08:00
2026-04-04 01:40:38 -07:00
2026-01-27 15:28:27 -08:00
2026-01-30 12:53:59 -08:00
2026-01-20 22:28:06 -08:00
2026-01-30 12:53:59 -08:00
2026-01-20 10:44:25 -08:00
2023-04-14 00:45:34 -07:00
2026-01-12 23:37:54 -08:00
2026-01-20 10:44:25 -08:00
2025-09-14 13:02:33 -07:00
2026-01-09 00:56:00 -08:00
2025-11-10 16:57:30 -08:00
2026-01-27 15:28:27 -08:00
2026-01-30 16:15:43 -08:00
2026-01-06 13:46:11 -08:00
2026-01-31 12:05:37 -08:00
2024-02-14 12:41:51 -08:00
2026-04-19 13:44:57 -07:00
2026-01-27 15:28:27 -08:00
2026-01-27 15:28:27 -08:00