Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement request: JPEG2000 w/ metadata #3048

Open
johnfrancisgit opened this issue Mar 19, 2018 · 2 comments
Open

Enhancement request: JPEG2000 w/ metadata #3048

johnfrancisgit opened this issue Mar 19, 2018 · 2 comments

Comments

@johnfrancisgit
Copy link

It would be great if we were able to optionally write XML metadata to JPEG2000 images. Currently unsupported.

@wiredfool
Copy link
Member

That is something that would be a good addition. PRs welcome.

@radarhere radarhere added the JPEG label Apr 14, 2021
@radarhere
Copy link
Member

radarhere commented Apr 14, 2021

Looking at page 21 of https://web.archive.org/web/20230327234610/https://wiki.opf-labs.org/download/attachments/11337762/15444-1annexi.pdf, the XML box comes after the JP2 Header.

Looking at https://github.com/uclouvain/openjpeg/blob/6a29f5a9e3a1e2dbf1e3df22b7e449bc1db20b5c/src/lib/openjp2/jp2.c#L2916-L2949 and https://exiftool.org/TagNames/Jpeg2000.html, I conclude that this is a missing OpenJPEG feature. I think the solution is to create opj_jp2_write_xml in OpenJPEG, adding it to opj_jp2_setup_header_writing.

Although given that work to allow OpenJPEG to read XML has stalled, that may not happen anytime soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants