mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Describe Image.MIME in register_mime()
This commit is contained in:
parent
cee8fd0788
commit
cabfed9137
|
@ -3409,8 +3409,12 @@ def register_open(id, factory, accept=None):
|
|||
|
||||
def register_mime(id, mimetype):
|
||||
"""
|
||||
Registers an image MIME type. This function should not be used
|
||||
in application code.
|
||||
Registers an image MIME type by populating ``Image.MIME``. This function
|
||||
should not be used in application code.
|
||||
|
||||
``Image.MIME`` provides a mapping from image format identifiers to mime
|
||||
formats, but :py:meth:`~PIL.ImageFile.ImageFile.get_format_mimetype` can
|
||||
provide a different result for specific images.
|
||||
|
||||
:param id: An image format identifier.
|
||||
:param mimetype: The image MIME type for this format.
|
||||
|
|
Loading…
Reference in New Issue
Block a user