mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-13 18:17:02 +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:
|
try:
|
||||||
with Image.open(image) as im:
|
with Image.open(image) as im:
|
||||||
x, y = im.info['dpi']
|
x, y = im.info['dpi']
|
||||||
return x
|
return round(x)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.log(
|
self.log(
|
||||||
'warning',
|
'warning',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue