mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-04 03:27:12 -05:00 
			
		
		
		
	use archived file for thumbnail, if available
This commit is contained in:
		
							parent
							
								
									65b37f61ca
								
							
						
					
					
						commit
						a13e9f23b1
					
				@ -53,7 +53,9 @@ class RasterisedDocumentParser(DocumentParser):
 | 
			
		||||
 | 
			
		||||
    def get_thumbnail(self, document_path, mime_type, file_name=None):
 | 
			
		||||
        return make_thumbnail_from_pdf(
 | 
			
		||||
            document_path, self.tempdir, self.logging_group)
 | 
			
		||||
            self.archive_path or document_path,
 | 
			
		||||
            self.tempdir,
 | 
			
		||||
            self.logging_group)
 | 
			
		||||
 | 
			
		||||
    def is_image(self, mime_type):
 | 
			
		||||
        return mime_type in [
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user