mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-24 20:51:16 +03:00 
			
		
		
		
	Use relevant extension for temporary file
This commit is contained in:
		
							parent
							
								
									3c4ccdcff5
								
							
						
					
					
						commit
						e52fa8fe38
					
				|  | @ -95,7 +95,7 @@ def grab(bbox=None, include_layered_windows=False, all_screens=False, xdisplay=N | |||
| 
 | ||||
| def grabclipboard(): | ||||
|     if sys.platform == "darwin": | ||||
|         fh, filepath = tempfile.mkstemp(".jpg") | ||||
|         fh, filepath = tempfile.mkstemp(".png") | ||||
|         os.close(fh) | ||||
|         commands = [ | ||||
|             'set theFile to (open for access POSIX file "' | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user