Files
OCRmyPDF/docs
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
..
2022-06-09 16:59:20 -07:00
2025-04-21 00:50:26 -07:00
2025-04-17 02:27:59 -07:00
2025-04-17 02:27:59 -07:00
2025-04-17 15:03:21 -07:00
2025-04-17 15:03:21 -07:00