Skip to content

Commit

Permalink
Merge pull request #6415 from radarhere/doc
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jul 6, 2022
2 parents 14b457e + 300f6c8 commit b0185e4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/handbook/writing-your-own-image-plugin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ The fields are used as follows:
uncompressed data, in a variety of pixel formats. For more information on
this decoder, see the description below.

A list of C decoders can be seen under codecs section of the function array
in :file:`_imaging.c`. Python decoders are registered within the relevant
plugins.

**region**
A 4-tuple specifying where to store data in the image.

Expand Down
5 changes: 5 additions & 0 deletions src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,11 @@ def tobytes(self, encoder_name="raw", *args):
:param encoder_name: What encoder to use. The default is to
use the standard "raw" encoder.
A list of C encoders can be seen under
codecs section of the function array in
:file:`_imaging.c`. Python encoders are
registered within the relevant plugins.
:param args: Extra arguments to the encoder.
:returns: A :py:class:`bytes` object.
"""
Expand Down

0 comments on commit b0185e4

Please sign in to comment.