v17.4.2

ocrmypdf/OCRmyPDFv17.4.2Jul 17, 2026by github-actions[bot]

AI Summary

This release fixes a bug in the Python API that incorrectly overrode the user's PIL image pixel limit and updates dependency locks to address security vulnerabilities.

Key Highlights

  • Fixed Python API overriding `PIL.Image.MAX_IMAGE_PIXELS` when the caller did not explicitly set `max_image_mpixels`.
  • Updated `uv.lock` to avoid pinning a vulnerable version of Pillow.

Full Release Notes

- Fixed Python API unconditionally overriding ``PIL.Image.MAX_IMAGE_PIXELS``
  when the caller did not explicitly set ``max_image_mpixels``. Host
  applications (e.g. Paperless-NGX) that configure the PIL limit before
  invoking ``ocrmypdf.ocr()`` now have their setting respected. The CLI
  default of 250 megapixels is unchanged. {issue}`1665`
- Updated uv.lock to avoid pinning a vulnerable version of Pillow. {issue}`1666`