Allows the user to configure the PIL pixel limit used for other (non-OCR) PIL operations and loadings

This commit is contained in:
Trenton H
2024-03-03 18:42:28 -08:00
parent 35574f3b86
commit f5155fa54c
6 changed files with 46 additions and 0 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")