mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-19 04:05:20 +00:00
fix bug with DPI calculation
This commit is contained in:
1 parent
ba6843df83
commit
23c6f849d6
1 file changed
+1
-1
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user