mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	thumbnail generation
This commit is contained in:
		
							parent
							
								
									e47b105185
								
							
						
					
					
						commit
						b2e0a8c884
					
				@ -17,8 +17,8 @@ class TextDocumentParser(DocumentParser):
 | 
			
		||||
        def read_text():
 | 
			
		||||
            with open(document_path, 'r') as src:
 | 
			
		||||
                lines = [line.strip() for line in src.readlines()]
 | 
			
		||||
                text = "\n".join([line for line in lines[:50]])
 | 
			
		||||
                return text.replace('"', "'")
 | 
			
		||||
                text = "\n".join(lines[:50])
 | 
			
		||||
                return text
 | 
			
		||||
 | 
			
		||||
        img = Image.new("RGB", (500, 700), color="white")
 | 
			
		||||
        draw = ImageDraw.Draw(img)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user