mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-16 00:36:22 +00:00
extract OCR_MAX_IMAGE_PIXELS into settings.py
This commit is contained in:

committed by
Johann Bauer

parent
6bc2cb0607
commit
f4a0d8c040
@@ -6,9 +6,7 @@ from PIL import Image
|
||||
from PIL import ImageDraw
|
||||
from PIL import ImageFont
|
||||
|
||||
Image.MAX_IMAGE_PIXELS = os.environ.get(
|
||||
'PAPERLESS_OCR_MAX_IMAGE_PIXELS', Image.MAX_IMAGE_PIXELS
|
||||
)
|
||||
Image.MAX_IMAGE_PIXELS = settings.OCR_MAX_IMAGE_PIXELS
|
||||
|
||||
|
||||
class TextDocumentParser(DocumentParser):
|
||||
|
Reference in New Issue
Block a user