Skip to content

Commit 3fb59a4

Browse files
committed
Use versionadded
1 parent 973cd64 commit 3fb59a4

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

docs/handbook/image-file-formats.rst

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -572,12 +572,22 @@ JPEG 2000
572572
Pillow reads and writes JPEG 2000 files containing ``L``, ``LA``, ``RGB``,
573573
``RGBA``, or ``YCbCr`` data. When reading, ``YCbCr`` data is converted to
574574
``RGB`` or ``RGBA`` depending on whether or not there is an alpha channel.
575-
Beginning with version 8.3.0, Pillow can read (but not write) ``RGB``,
576-
``RGBA``, and ``YCbCr`` images with subsampled components. Pillow 10.4.0 and
577-
later can read ``CMYK`` images with OpenJPEG 2.5.1 and later, and Pillow 11.1.0
578-
and later can write ``CMYK`` images with OpenJPEG 2.5.3 and later. Pillow
579-
supports JPEG 2000 raw codestreams (``.j2k`` files), as well as boxed JPEG 2000
580-
files (``.jp2`` or ``.jpx`` files).
575+
576+
Pillow can read (but not write) ``RGB``, ``RGBA``, and ``YCbCr`` images with
577+
subsampled components.
578+
579+
.. versionadded:: 8.3.0
580+
581+
Pillow can read ``CMYK`` images with OpenJPEG 2.5.1 and later.
582+
583+
.. versionadded:: 10.4.0
584+
585+
Pillow can write ``CMYK`` images with OpenJPEG 2.5.3 and later.
586+
587+
.. versionadded:: 11.1.0
588+
589+
Pillow supports JPEG 2000 raw codestreams (``.j2k`` files), as well as boxed
590+
JPEG 2000 files (``.jp2`` or ``.jpx`` files).
581591

582592
When loading, if you set the ``mode`` on the image prior to the
583593
:py:meth:`~PIL.Image.Image.load` method being invoked, you can ask Pillow to

0 commit comments

Comments
 (0)