mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	 Johannes Plunien
					Johannes Plunien
				
			
				
					committed by
					
						 Trenton H
						Trenton H
					
				
			
			
				
	
			
			
			 Trenton H
						Trenton H
					
				
			
						parent
						
							25ccff8640
						
					
				
				
					commit
					83a760644d
				
			| @@ -202,7 +202,12 @@ def make_thumbnail_from_pdf_gs_fallback(in_path, temp_dir, logging_group=None) - | ||||
|         return out_path | ||||
|  | ||||
|     except ParseError: | ||||
|         return get_default_thumbnail() | ||||
|         # The caller might expect a generated thumbnail that can be moved, | ||||
|         # so we need to copy it before it gets moved. | ||||
|         # https://github.com/paperless-ngx/paperless-ngx/issues/3631 | ||||
|         default_thumbnail_path = os.path.join(temp_dir, "document.png") | ||||
|         shutil.copy2(get_default_thumbnail(), default_thumbnail_path) | ||||
|         return default_thumbnail_path | ||||
|  | ||||
|  | ||||
| def make_thumbnail_from_pdf(in_path, temp_dir, logging_group=None) -> str: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user