SIGN IN SIGN UP
ocrmypdf / OCRmyPDF UNCLAIMED

OCRmyPDF adds an OCR text layer to scanned PDF files, allowing them to be searched

0 0 1 Python

Fix optimize=2/3 crash when using Python API

The jpg_quality and png_quality options default to None in the pydantic
model, but the fallback check only handled == 0. This caused a TypeError
when calling ocrmypdf.ocr() with optimize >= 2 without explicitly
setting quality values. Fixes #1641.
J
James R. Barlow committed
b588e3bfd79ca2d08159556da7ac60da32ea866f
Parent: 59190ef