Feature: Allow a user to disable the pixel limit for OCR entirely (#5996)

This commit is contained in:
Trenton H
2024-03-04 14:37:36 -08:00
committed by GitHub
parent 6379e7b54f
commit 6779042242
5 changed files with 40 additions and 15 deletions

View File

@@ -151,7 +151,7 @@ class ApplicationConfiguration(AbstractSingletonModel):
max_image_pixels = models.FloatField(
verbose_name=_("Sets the maximum image size for decompression"),
null=True,
validators=[MinValueValidator(1_000_000.0)],
validators=[MinValueValidator(0.0)],
)
color_conversion_strategy = models.CharField(