Skip to content

Conversation

@tannerhelland
Copy link
Owner

PhotoDemon now exports JPEG-2000 images using the 3rd-party OpenJPEG library:

https://www.openjpeg.org/

Prior to previous PD builds, this makes JPEG-2000 export faster, produces smaller and higher-quality files, and resolves a number of JP2-related bugs. Memory consumption has also been greatly reduced when exporting JP2 images, particularly when generating live previews (to reflect export quality). Grayscale, RGB, and RGBA export formats are all supported.

This closes out my current work on JPEG-2000 support in PhotoDemon. I think it's about as good as it gets for open-source software, but I am always open to additional feedback from users after wider testing.

Thank you to everyone who reported JPEG-2000-related bugs in the past! Your help made this overhaul possible.

Lots of little kinks still to work out, but all the basic plumbing is in place and JP2 files are being created (mostly) correctly!
- JPEG-2000 images are now exported via OpenJPEG
- JP2 export quality and speed is greatly improved by this commit
- A number of JP2-specific export bugs have now been resolved
- JP2 quality previews in the export dialog are now rendered in-memory via OpenJPEG, for greatly improved performance and greatly reduced memory requirements
JPEG-2000 and JPEG-XR export dialogs used very similar export quality text, differing only in the numbers used to represent quality levels (due to different quality scales).

By merging these and supplying the numerical portions at run-time, I can cut ~20-something words and ~5 redundant phrases from all translation files.
@tannerhelland tannerhelland merged commit 5360c99 into main Nov 13, 2025
@tannerhelland tannerhelland deleted the openjpeg-export branch November 13, 2025 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants