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 35574f3b86
commit b9636a3def
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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")