Feature: Allow user to control PIL image pixel limit (#5997)

This commit is contained in:
Trenton H
2024-03-04 16:19:56 -08:00
committed by GitHub
parent 35574f3b86
commit b9636a3def
7 changed files with 47 additions and 1 deletions

View File

@@ -246,7 +246,7 @@ class TestParser(DirectoriesMixin, FileSystemAssertsMixin, TestCase):
self.assertRaises(ParseError, f)
@override_settings(OCR_IMAGE_DPI=72)
@override_settings(OCR_IMAGE_DPI=72, MAX_IMAGE_PIXELS=0)
def test_image_no_dpi_default(self):
parser = RasterisedDocumentParser(None)