mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-13 10:07:15 +01:00
Feature: Allow user to control PIL image pixel limit (#5997)
This commit is contained in:
parent
35574f3b86
commit
b9636a3def
7 changed files with 47 additions and 1 deletions
|
|
@ -20,6 +20,7 @@ from documents.plugins.base import StopConsumeTaskError
|
|||
from documents.plugins.helpers import ProgressStatusOptions
|
||||
from documents.utils import copy_basic_file_stats
|
||||
from documents.utils import copy_file_with_basic_stats
|
||||
from documents.utils import maybe_override_pixel_limit
|
||||
|
||||
logger = logging.getLogger("paperless.barcodes")
|
||||
|
||||
|
|
@ -81,6 +82,9 @@ class BarcodePlugin(ConsumeTaskPlugin):
|
|||
self.barcodes: list[Barcode] = []
|
||||
|
||||
def run(self) -> Optional[str]:
|
||||
# Some operations may use PIL, override pixel setting if needed
|
||||
maybe_override_pixel_limit()
|
||||
|
||||
# Maybe do the conversion of TIFF to PDF
|
||||
self.convert_from_tiff_to_pdf()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue