mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 17:47:08 +01:00
fix bug with DPI calculation
This commit is contained in:
parent
ba6843df83
commit
23c6f849d6
1 changed files with 1 additions and 1 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue