Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Support saving CMYK JP2 images#8592

Merged
radarhere merged 5 commits into
python-pillow:mainpython-pillow/Pillow:mainfrom
radarhere:jpeg2000_cmyk_saveradarhere/Pillow:jpeg2000_cmyk_saveCopy head branch name to clipboard
Dec 28, 2024
Merged

Support saving CMYK JP2 images#8592
radarhere merged 5 commits into
python-pillow:mainpython-pillow/Pillow:mainfrom
radarhere:jpeg2000_cmyk_saveradarhere/Pillow:jpeg2000_cmyk_saveCopy head branch name to clipboard

Conversation

@radarhere

@radarhere radarhere commented Dec 10, 2024

Copy link
Copy Markdown
Member

Resolves #8062

Allows CMYK JP2 images to be saved. This functionality requires uclouvain/openjpeg#1529 from OpenJPEG 2.5.3.

@hugovk hugovk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this needs a docs update?

And let's add this to the release notes.

Comment thread docs/handbook/image-file-formats.rst Outdated
Comment on lines +576 to +580
``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).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we use the .. versionadded:: 10.4.0 etc. things?

@hugovk hugovk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hugovk hugovk added the automerge Automatically merge PRs that are ready label Dec 28, 2024
@radarhere
radarhere merged commit 1a79d10 into python-pillow:main Dec 28, 2024
@radarhere
radarhere deleted the jpeg2000_cmyk_save branch December 28, 2024 19:25
eyedav pushed a commit to eyedav/Pillow that referenced this pull request Jul 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge PRs that are ready JPEG

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Saving a CMYK image as .jp2/.j2k fails

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.