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