From ae0b4a825a75132708651a6205e3d2e5fbcdf48e Mon Sep 17 00:00:00 2001 From: Konstantin Baierer Date: Thu, 22 Apr 2021 10:28:01 +0200 Subject: [PATCH] ocrd cli: catch dpi == 1, return 230 --- qurator/eynollah/processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qurator/eynollah/processor.py b/qurator/eynollah/processor.py index 2fcc08d..a9261f3 100644 --- a/qurator/eynollah/processor.py +++ b/qurator/eynollah/processor.py @@ -47,7 +47,7 @@ class EynollahProcessor(Processor): dpi = exif.resolution if exif.resolutionUnit == 'cm': dpi /= 2.54 - self.parameter['dpi'] = dpi + self.parameter['dpi'] = dpi if dpi != 1 else 230 eynollah_kwargs = { 'dir_models': self.resolve_resource(self.parameter['models']), 'allow_enhancement': self.parameter['allow_enhancement'],