Skip to content

Commit

Permalink
Updated documentation for python-pillow#7947 and python-pillow#8592
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 28, 2024
1 parent 439d5cf commit 0220b02
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/handbook/image-file-formats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -573,9 +573,11 @@ Pillow reads and writes JPEG 2000 files containing ``L``, ``LA``, ``RGB``,
``RGBA``, or ``YCbCr`` data. When reading, ``YCbCr`` data is converted to
``RGB`` or ``RGBA`` depending on whether or not there is an alpha channel.
Beginning with version 8.3.0, Pillow can read (but not write) ``RGB``,
``RGBA``, and ``YCbCr`` images with subsampled components. Pillow supports
JPEG 2000 raw codestreams (``.j2k`` files), as well as boxed JPEG 2000 files
(``.jp2`` or ``.jpx`` files).
``RGBA``, and ``YCbCr`` images with subsampled components. Pillow 10.4.0 and
later can read ``CMYK`` images with OpenJPEG 2.5.1 and later, and Pillow 11.1.0
and later can write ``CMYK`` images with OpenJPEG 2.5.3 and later. Pillow
supports JPEG 2000 raw codestreams (``.j2k`` files), as well as boxed JPEG 2000
files (``.jp2`` or ``.jpx`` files).

When loading, if you set the ``mode`` on the image prior to the
:py:meth:`~PIL.Image.Image.load` method being invoked, you can ask Pillow to
Expand Down
5 changes: 5 additions & 0 deletions docs/releasenotes/11.1.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ zlib library, and what version of zlib-ng is being used::
Other Changes
=============

Saving JPEG 2000 CMYK images
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

With OpenJPEG 2.5.3 or later, Pillow can now save CMYK images as JPEG 2000 files.

zlib-ng in wheels
^^^^^^^^^^^^^^^^^

Expand Down

0 comments on commit 0220b02

Please sign in to comment.