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

3 more issues with ktx create and EXR loading #971

Open
1 of 3 tasks
MarkCallow opened this issue Jan 1, 2025 · 0 comments
Open
1 of 3 tasks

3 more issues with ktx create and EXR loading #971

MarkCallow opened this issue Jan 1, 2025 · 0 comments

Comments

@MarkCallow
Copy link
Collaborator

MarkCallow commented Jan 1, 2025

in addition to #966 and #970.

header.line_order = 0;

before

ec = LoadEXRImageFromMemory(&image, &header, exrBuffer.data(), exrBuffer.size(), &err);
. https://raw.githubusercontent.com/AcademySoftwareFoundation/openexr-images/main/ScanLines/Blobbies.jpg has lineOrder 1, decreasing Y.

Fixed in 91e61d6.

  • If the .exr file contains no recognized channels ktx create creates an empty texture. It should raise an error. Only R,G,B and A are currently recognized.
  • A single channel "Y" should be recognized and a greyscale texture created. Probably handling should follow the same model as PNG L textures which IIRC is to replicate the channel to all 3 if the output format is RGB{,A} or add swizzle metadata if the output format is R. The EXR spec does not specifically call out YA textures so it is unclear if those exist and should be supported. For now only supporting only Y is good. A .exr with a single Y channel is https://raw.githubusercontent.com/AcademySoftwareFoundation/openexr-images/main/LuminanceChroma/Garden.exr.
MarkCallow added a commit that referenced this issue Jan 18, 2025
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

No branches or pull requests

1 participant