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

This commit is contained in:
Trenton H authored and GitHub committed 2024-03-05 00:19:56 +00:00
1 parent 35574f3b86
commit b9636a3def
7 files changed
+47 -1

No files matched your search

+4
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")