diff --git a/docs/releasenotes/9.1.0.rst b/docs/releasenotes/9.1.0.rst index 0db1c2600..22b185e95 100644 --- a/docs/releasenotes/9.1.0.rst +++ b/docs/releasenotes/9.1.0.rst @@ -157,7 +157,8 @@ Added PyEncoder ^^^^^^^^^^^^^^^ :py:class:`~PIL.ImageFile.PyEncoder` has been added, allowing for file encoders to be -written in Python. +written in Python. See :ref:`Writing Your Own File Codec in Python` for +more information. Other Changes ============= diff --git a/src/PIL/ImageFile.py b/src/PIL/ImageFile.py index c63cc6145..767b38ca4 100644 --- a/src/PIL/ImageFile.py +++ b/src/PIL/ImageFile.py @@ -702,6 +702,8 @@ class PyEncoder(PyCodec): """ Python implementation of a format encoder. Override this class and add the decoding logic in the :meth:`encode` method. + + See :ref:`Writing Your Own File Codec in Python` """ _pushes_fd = False