From 0cd550719a5903553ba3bcd6879cc0bb2ab49f94 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Tue, 1 Mar 2022 14:56:04 +1100 Subject: [PATCH] Link to demonstrations of PyDecoder and PyEncoder --- docs/handbook/writing-your-own-image-plugin.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/handbook/writing-your-own-image-plugin.rst b/docs/handbook/writing-your-own-image-plugin.rst index 8a3dcf69f..28e257be5 100644 --- a/docs/handbook/writing-your-own-image-plugin.rst +++ b/docs/handbook/writing-your-own-image-plugin.rst @@ -447,3 +447,9 @@ Python-based file codec: If you set ``_pulls_fd`` or ``_pushes_fd`` to ``True`` however, then you probably chose to perform any cleanup tasks at the end of ``decode`` or ``encode``. + +For an example :py:class:`PIL.ImageFile.PyDecoder`, see `DdsImagePlugin +`_. +For a plugin that uses both :py:class:`PIL.ImageFile.PyDecoder` and +:py:class:`PIL.ImageFile.PyEncoder`, see `BlpImagePlugin +`_