mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 09:07:18 +01:00
Adds new setting to control color conversions (#4709)
This commit is contained in:
parent
e1b573adeb
commit
e3f4e0b775
3 changed files with 24 additions and 0 deletions
|
|
@ -864,6 +864,11 @@ OCR_MAX_IMAGE_PIXELS: Optional[int] = None
|
|||
if os.environ.get("PAPERLESS_OCR_MAX_IMAGE_PIXELS") is not None:
|
||||
OCR_MAX_IMAGE_PIXELS: int = int(os.environ.get("PAPERLESS_OCR_MAX_IMAGE_PIXELS"))
|
||||
|
||||
OCR_COLOR_CONVERSION_STRATEGY = os.getenv(
|
||||
"PAPERLESS_OCR_COLOR_CONVERSION_STRATEGY",
|
||||
"RGB",
|
||||
)
|
||||
|
||||
OCR_USER_ARGS = os.getenv("PAPERLESS_OCR_USER_ARGS", "{}")
|
||||
|
||||
# GNUPG needs a home directory for some reason
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue