mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-02 23:13:40 +03:00
Merge pull request #7636 from bgilbert/jp2-docs
Document JPEG 2000 support for writing YCbCr and reading subsampled color
This commit is contained in:
commit
ca9b49f8dd
|
@ -552,12 +552,13 @@ JPEG 2000
|
||||||
|
|
||||||
.. versionadded:: 2.4.0
|
.. versionadded:: 2.4.0
|
||||||
|
|
||||||
Pillow reads and writes JPEG 2000 files containing ``L``, ``LA``, ``RGB`` or
|
Pillow reads and writes JPEG 2000 files containing ``L``, ``LA``, ``RGB``,
|
||||||
``RGBA`` data. It can also read files containing ``YCbCr`` data, which it
|
``RGBA``, or ``YCbCr`` data. When reading, ``YCbCr`` data is converted to
|
||||||
converts on read into ``RGB`` or ``RGBA`` depending on whether or not there is
|
``RGB`` or ``RGBA`` depending on whether or not there is an alpha channel.
|
||||||
an alpha channel. Pillow supports JPEG 2000 raw codestreams (``.j2k`` files),
|
Beginning with version 8.3.0, Pillow can read (but not write) ``RGB``,
|
||||||
as well as boxed JPEG 2000 files (``.j2p`` or ``.jpx`` files). Pillow does
|
``RGBA``, and ``YCbCr`` images with subsampled components. Pillow supports
|
||||||
*not* support files whose components have different sampling frequencies.
|
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
|
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
|
:py:meth:`~PIL.Image.Image.load` method being invoked, you can ask Pillow to
|
||||||
|
|
Loading…
Reference in New Issue
Block a user