KhronosGroup / KhronosGroup/KTX-Software

[toktx] Do color space transform on JFIF files

Open
#237 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.