mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	fix bug with DPI calculation
This commit is contained in:
		| @@ -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', | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler