Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

fix bug with DPI calculation

jonaswinkler23c6f849d602
diff --git a/src/paperless_tesseract/parsers.py b/src/paperless_tesseract/parsers.py
index 57cfb0118..d53879542 100644
--- a/src/paperless_tesseract/parsers.py
+++ b/src/paperless_tesseract/parsers.py
@@ -70,7 +70,7 @@ class RasterisedDocumentParser(DocumentParser):
try:
with Image.open(image) as im:
x, y = im.info['dpi']
- return x
+ return round(x)
except Exception as e:
self.log(
'warning',