Make downsampling large images that Tesseract would otherwise error on into default behavior

Fixes #1281
This commit is contained in:
James R. Barlow
2024-04-07 13:43:20 -07:00
parent b4db1b741f
commit 5fdcb7602b
@@ -4,6 +4,7 @@
from __future__ import annotations
import argparse
import logging
import os
@@ -93,7 +94,8 @@ def add_options(parser):
)
tess.add_argument(
'--tesseract-downsample-large-images',
action='store_true',
action=argparse.BooleanOptionalAction,
default=True,
help=(
"Downsample large images before OCR. Tesseract has an upper limit on the "
"size images it will support. If this argument is given, OCRmyPDF will "