mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Feature: Allow a user to disable the pixel limit for OCR entirely (#5996)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 4.2.10 on 2024-03-04 17:30
|
||||
|
||||
import django.core.validators
|
||||
from django.db import migrations
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("paperless", "0002_applicationconfiguration_app_logo_and_more"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="applicationconfiguration",
|
||||
name="max_image_pixels",
|
||||
field=models.FloatField(
|
||||
null=True,
|
||||
validators=[django.core.validators.MinValueValidator(0.0)],
|
||||
verbose_name="Sets the maximum image size for decompression",
|
||||
),
|
||||
),
|
||||
]
|
@@ -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(
|
||||
|
Reference in New Issue
Block a user