Scale the images down so they aren't as huge
This commit is contained in:
		
							parent
							
								
									535535efd3
								
							
						
					
					
						commit
						baec58fd42
					
				| @ -79,6 +79,7 @@ with Image.open(output_file) as im: | |||||||
|                     anchor="rm", |                     anchor="rm", | ||||||
|                     font=font, |                     font=font, | ||||||
|                 ) |                 ) | ||||||
|  |     im = im.resize((im.width // 2, im.height // 2)) | ||||||
|     im.save(output_file, "PNG") |     im.save(output_file, "PNG") | ||||||
|     print(json.dumps({"new_file": |     print(json.dumps({"new_file": | ||||||
|                       {"url": base_url + "/static/" + output_file_relative, |                       {"url": base_url + "/static/" + output_file_relative, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user