Skip to content

Commit 0cd5507

Browse files
committed
Link to demonstrations of PyDecoder and PyEncoder
1 parent d05281f commit 0cd5507

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/handbook/writing-your-own-image-plugin.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,3 +447,9 @@ Python-based file codec:
447447
If you set ``_pulls_fd`` or ``_pushes_fd`` to ``True`` however, then you
448448
probably chose to perform any cleanup tasks at the end of ``decode`` or
449449
``encode``.
450+
451+
For an example :py:class:`PIL.ImageFile.PyDecoder`, see `DdsImagePlugin
452+
<https://github.com/python-pillow/Pillow/blob/main/docs/example/DdsImagePlugin.py>`_.
453+
For a plugin that uses both :py:class:`PIL.ImageFile.PyDecoder` and
454+
:py:class:`PIL.ImageFile.PyEncoder`, see `BlpImagePlugin
455+
<https://github.com/python-pillow/Pillow/blob/main/src/PIL/BlpImagePlugin.py>`_

0 commit comments

Comments
 (0)