KhronosGroup / KhronosGroup/KTX-Software
[toktx] Do color space transform on JFIF files
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 317
- Avg merge
- 20h 12m
- Merged PRs (30d)
- 3
Description
toktx should distinguish between JFIF and EXIF files. If JFIF it should transform the required BT.601 space (gamma 2.4) to sRGB. If EXIF it should verify the color space is sRGB and if not, either bail out or transform the space to sRGB or linear depending on the transfer function table. Consider using http://www.littlecms.com/ for this. Need to watch out for YCrCb images and convert those.
How many JFIF files are spec compliant and in BT.601?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the toktx entry point and trace how JFIF and EXIF files, including YCrCb images, are currently handled. Review the BT.601, sRGB, transfer-function, and Little CMS considerations in the issue. Done means defining and implementing the required conversions or failure behavior, with the spec-compliance question resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100