Skip to content

Conversation

@brechtvl
Copy link
Contributor

@brechtvl brechtvl commented Nov 28, 2025

Description

The JPEG XL color encoding metadata only supports a subset of CICP. So for
example srgb_p3d65_display and pq_rec2020_display are supported, but
g26_xyzd65_display is not.

Custom primaries, custom white point and arbitrary gamma could be used to
support more, but I didn't implement that.

Tests

Tests for read and write were added.

Checklist:

  • I have read the contribution guidelines.
  • I have updated the documentation, if applicable. (Check if there is no
    need to update the documentation, for example if this is a bug fix that
    doesn't change the API.)
  • I have ensured that the change is tested somewhere in the testsuite
    (adding new test cases if necessary).
  • If I added or modified a C++ API call, I have also amended the
    corresponding Python bindings (and if altering ImageBufAlgo functions, also
    exposed the new functionality as oiiotool options).
  • My code follows the prevailing code style of this project. If I haven't
    already run clang-format before submitting, I definitely will look at the CI
    test that runs clang-format and fix anything that it highlights as being
    nonconforming.

@brechtvl
Copy link
Contributor Author

brechtvl commented Nov 28, 2025

Draft because this depends on and includes the changes from #4964.

The JPEG XL color encoding metadata only supports a subset of CICP. So for
example srgb_p3d65_display and pq_rec2020_display are supported, but
g26_xyzd65_display is not.

Custom primaries, custom white point and arbitrary gamma could be used to
support more, but I didn't implement that.

Signed-off-by: Brecht Van Lommel <brecht@blender.org>
Copy link
Collaborator

@zachlewis zachlewis left a comment

Choose a reason for hiding this comment

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

This is fantastic work, Brecht!

@lgritz lgritz merged commit ff89654 into AcademySoftwareFoundation:main Dec 22, 2025
28 of 30 checks passed
lgritz pushed a commit to lgritz/OpenImageIO that referenced this pull request Dec 23, 2025
…undation#4968)

The JPEG XL color encoding metadata only supports a subset of CICP. So
for
example `srgb_p3d65_display` and `pq_rec2020_display` are supported, but
`g26_xyzd65_display` is not.

Custom primaries, custom white point and arbitrary gamma could be used
to
support more, but I didn't implement that.

Tests for read and write were added.

Signed-off-by: Brecht Van Lommel <brecht@blender.org>
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.

3 participants