From 17cf70da6184d20ad24db5191768f40f366d5f63 Mon Sep 17 00:00:00 2001 From: Konstantin Baierer Date: Fri, 1 Nov 2019 16:59:35 +0100 Subject: [PATCH] reduce pixel_density problem severity: error -> warning, OCR-D/spec#129 OCR-D/assets#33 --- ocrd_validators/ocrd_validators/workspace_validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocrd_validators/ocrd_validators/workspace_validator.py b/ocrd_validators/ocrd_validators/workspace_validator.py index 8a0973baee..7a1a239cb4 100644 --- a/ocrd_validators/ocrd_validators/workspace_validator.py +++ b/ocrd_validators/ocrd_validators/workspace_validator.py @@ -155,7 +155,7 @@ def _validate_pixel_density(self): for k in ['xResolution', 'yResolution']: v = exif.__dict__.get(k) if v is None or v <= 72: - self.report.add_error("Image %s: %s (%s pixels per %s) is too low" % (f.ID, k, v, exif.resolutionUnit)) + self.report.add_warning("Image %s: %s (%s pixels per %s) is too low" % (f.ID, k, v, exif.resolutionUnit)) def _validate_mets_file_group_names(self): """