Skip to content

fix(makernote): register Canon parser in TIFF parser#34

Closed
rpuneet wants to merge 2 commits intomainfrom
fix/canon-registration
Closed

fix(makernote): register Canon parser in TIFF parser#34
rpuneet wants to merge 2 commits intomainfrom
fix/canon-registration

Conversation

@rpuneet
Copy link
Contributor

@rpuneet rpuneet commented Feb 7, 2026

Summary

Fixes #29

CRITICAL HOTFIX - Canon MakerNote parser was merged but not registered.

Root Cause

PR #24 added the Canon parser implementation but the registration line was missing from tiff.go:

registry.Register(canon.New())

Changes

  • Add canon package import
  • Register canon.New() after Sony (Canon must be last as fallback)

Verification

./bin/imx testdata/cr2/sample1.cr2

Now shows Canon MakerNote tags:

  • Canon CameraSettings
  • Canon ImageType: Canon EOS-1Ds Mark II
  • Canon SerialNumber: 304421
  • Canon ModelID, AFInfo, ColorData, etc.

Test plan

  • make build passes
  • All tests pass
  • CLI verification with CR2 file shows Canon tags

🤖 Generated with Claude Code

rpuneet and others added 2 commits February 8, 2026 00:38
Fixes #29

The Canon MakerNote parser was merged (PR #24) but not registered
in the MakerNote registry, causing Canon metadata to not be extracted.

Canon must be registered LAST as it has no header and uses IFD
structure validation as fallback detection.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Always add raw MakerNote tag to ExifIFD (backward compatibility)
- Add Canon directory expectation to CR2 integration test with 28 tags
- Verify correct Canon tag names (CameraSettings, ShotInfo, etc.)

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

rpuneet commented Feb 7, 2026

Closing as duplicate - Canon registration is now included in the rebased codebase via other PRs.

@rpuneet rpuneet closed this Feb 7, 2026
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: Canon MakerNote parser not registered in tiff.go

1 participant