Skip to content

Commit ca9b49f

Browse files
authored
Merge pull request #7636 from bgilbert/jp2-docs
Document JPEG 2000 support for writing YCbCr and reading subsampled color
2 parents 1e8bad8 + a72b596 commit ca9b49f

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

docs/handbook/image-file-formats.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -552,12 +552,13 @@ JPEG 2000
552552

553553
.. versionadded:: 2.4.0
554554

555-
Pillow reads and writes JPEG 2000 files containing ``L``, ``LA``, ``RGB`` or
556-
``RGBA`` data. It can also read files containing ``YCbCr`` data, which it
557-
converts on read into ``RGB`` or ``RGBA`` depending on whether or not there is
558-
an alpha channel. Pillow supports JPEG 2000 raw codestreams (``.j2k`` files),
559-
as well as boxed JPEG 2000 files (``.j2p`` or ``.jpx`` files). Pillow does
560-
*not* support files whose components have different sampling frequencies.
555+
Pillow reads and writes JPEG 2000 files containing ``L``, ``LA``, ``RGB``,
556+
``RGBA``, or ``YCbCr`` data. When reading, ``YCbCr`` data is converted to
557+
``RGB`` or ``RGBA`` depending on whether or not there is an alpha channel.
558+
Beginning with version 8.3.0, Pillow can read (but not write) ``RGB``,
559+
``RGBA``, and ``YCbCr`` images with subsampled components. Pillow supports
560+
JPEG 2000 raw codestreams (``.j2k`` files), as well as boxed JPEG 2000 files
561+
(``.jp2`` or ``.jpx`` files).
561562

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

0 commit comments

Comments
 (0)