mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	Updated IcnsImagePlugin documentation
This commit is contained in:
		
							parent
							
								
									689f28aae7
								
							
						
					
					
						commit
						1bcda962d2
					
				| 
						 | 
					@ -248,7 +248,7 @@ class IcnsFile:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class IcnsImageFile(ImageFile.ImageFile):
 | 
					class IcnsImageFile(ImageFile.ImageFile):
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
    PIL read-only image support for Mac OS .icns files.
 | 
					    PIL image support for Mac OS .icns files.
 | 
				
			||||||
    Chooses the best resolution, but will possibly load
 | 
					    Chooses the best resolution, but will possibly load
 | 
				
			||||||
    a different size image if you mutate the size attribute
 | 
					    a different size image if you mutate the size attribute
 | 
				
			||||||
    before calling 'load'.
 | 
					    before calling 'load'.
 | 
				
			||||||
| 
						 | 
					@ -295,6 +295,13 @@ class IcnsImageFile(ImageFile.ImageFile):
 | 
				
			||||||
        self.load_end()
 | 
					        self.load_end()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def _save(im, fp, filename):
 | 
					def _save(im, fp, filename):
 | 
				
			||||||
 | 
					    """
 | 
				
			||||||
 | 
					    Saves the image as a series of PNG files,
 | 
				
			||||||
 | 
					    that are then converted to a .icns file
 | 
				
			||||||
 | 
					    using the OS X command line utility 'iconutil'.
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    OS X only.
 | 
				
			||||||
 | 
					    """
 | 
				
			||||||
    try:
 | 
					    try:
 | 
				
			||||||
        fp.flush()
 | 
					        fp.flush()
 | 
				
			||||||
    except:
 | 
					    except:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user