mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-19 04:23:10 +03:00
Added an example importing SpamImagePlugin [ci skip]
This commit is contained in:
parent
dfca48df1b
commit
04f856b13c
|
@ -105,6 +105,13 @@ Note that the image plugin must be explicitly registered using
|
||||||
:py:func:`PIL.Image.register_open`. Although not required, it is also a good
|
:py:func:`PIL.Image.register_open`. Although not required, it is also a good
|
||||||
idea to register any extensions used by this format.
|
idea to register any extensions used by this format.
|
||||||
|
|
||||||
|
Once the plugin has been imported, it can be used::
|
||||||
|
|
||||||
|
from PIL import Image
|
||||||
|
import SpamImagePlugin
|
||||||
|
with Image.open("hopper.spam") as im:
|
||||||
|
pass
|
||||||
|
|
||||||
The ``tile`` attribute
|
The ``tile`` attribute
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user