Skip to content

fix(exif): decode ComponentsConfiguration to human-readable format#35

Merged
rpuneet merged 1 commit intomainfrom
fix/components-configuration
Feb 7, 2026
Merged

fix(exif): decode ComponentsConfiguration to human-readable format#35
rpuneet merged 1 commit intomainfrom
fix/components-configuration

Conversation

@rpuneet
Copy link
Contributor

@rpuneet rpuneet commented Feb 7, 2026

Summary

Fixes #18

ComponentsConfiguration tag was displaying as hex bytes (e.g., 01020300) instead of human-readable format.

Changes

  • Add decodeComponentsConfiguration() function to decode each byte
  • Component values: 0="-", 1="Y", 2="Cb", 3="Cr", 4="R", 5="G", 6="B"
  • Update integration tests to expect decoded format

Before/After

Before After
01020300 Y, Cb, Cr, -

Test plan

  • Unit tests for decodeComponentsConfiguration
  • Integration tests updated and passing
  • CLI verification shows decoded values

🤖 Generated with Claude Code

Fixes #18

ComponentsConfiguration tag (0x9101) was displaying as hex bytes
(e.g., "01020300") instead of the standard component notation.

Now decodes to human-readable format:
- 0 = "-" (does not exist)
- 1 = "Y" (luminance)
- 2 = "Cb" (blue chrominance)
- 3 = "Cr" (red chrominance)
- 4 = "R", 5 = "G", 6 = "B"

Example: [1,2,3,0] → "Y, Cb, Cr, -"

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Feb 7, 2026

Codecov Report

❌ Patch coverage is 88.57143% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/parser/tiff/values.go 88.57% 3 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@rpuneet rpuneet merged commit d996fd1 into main Feb 7, 2026
6 of 7 checks passed
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.

Bug: ComponentsConfiguration displayed as hex instead of decoded Y/Cb/Cr format

1 participant