Updated IcnsImagePlugin documentation

This commit is contained in:
Andrew Murray 2015-04-23 17:00:21 +10:00
parent 689f28aae7
commit 1bcda962d2

View File

@ -248,7 +248,7 @@ class IcnsFile:
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
a different size image if you mutate the size attribute
before calling 'load'.
@ -295,6 +295,13 @@ class IcnsImageFile(ImageFile.ImageFile):
self.load_end()
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:
fp.flush()
except: