Skip to content

Commit

Permalink
Document JPEG streamtype option
Browse files Browse the repository at this point in the history
streamtype=1 is new in 10.2.0; the other values have existed since Git
pre-history.
  • Loading branch information
bgilbert committed Dec 4, 2023
1 parent d7fa0b9 commit dafaa1c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/handbook/image-file-formats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,19 @@ The :py:meth:`~PIL.Image.Image.save` method supports the following options:

.. versionadded:: 2.5.0

**streamtype**
Allows storing images without quantization and Huffman tables, or with
these tables but without image data. This is useful for container formats
or network protocols that handle tables separately and share them between
images.

* ``0`` (default): interchange datastream, with tables and image data
* ``1``: abbreviated table specification (tables-only) datastream

.. versionadded:: 10.2.0

* ``2``: abbreviated image (image-only) datastream

**comment**
A comment about the image.

Expand Down

0 comments on commit dafaa1c

Please sign in to comment.