KhronosGroup / KhronosGroup/KTX-Software
toktx: jpeg decoder does not support four-component JPEGs.
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 317
- Avg merge
- 20h 12m
- Merged PRs (30d)
- 3
Description
Hey,
jpg Images cannot be encoded
toktx --t2 --2d --genmipmap --nowarn --resize 512x1024 --bcmp --clevel 1 --qlevel 255 --srgb -- /tmp/gltfpack-DviPtt.ktx2 /tmp/gltfpack-ItLgGo.jpg => 512
tested with latest master from meshoptimizer with toktx master
attached is the image

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 by reproducing the reported toktx command with the attached four-component JPEG, then trace the JPEG decoding path used by toktx. Done means the supplied JPEG encodes successfully with the reported command and the expected KTX2 output is produced.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100