Feature: Allow user to control PIL image pixel limit (#5997)

This commit is contained in:
Trenton H
2024-03-04 16:19:56 -08:00
committed by GitHub
parent 82cb4591ce
commit 122bd9fd5b
7 changed files with 47 additions and 1 deletions

View File

@@ -970,6 +970,10 @@ OCR_COLOR_CONVERSION_STRATEGY = os.getenv(
OCR_USER_ARGS = os.getenv("PAPERLESS_OCR_USER_ARGS")
MAX_IMAGE_PIXELS: Final[Optional[int]] = __get_optional_int(
"PAPERLESS_MAX_IMAGE_PIXELS",
)
# GNUPG needs a home directory for some reason
GNUPG_HOME = os.getenv("HOME", "/tmp")