Skip to content

Accept .heif as a Live Photo Companion Still - #287

Merged
ptr727 merged 2 commits into
developfrom
fix/live-photo-heif-companion
Nov 18, 2026
Merged

ptr727 merged 2 commits into
developfrom
fix/live-photo-heif-companion

Conversation

@ptr727

@ptr727 ptr727 commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Accept .heif in the Live Photo companion extension list, so a still cataloged as .heif and renamed to .heic in the same round still pairs with its video. The list serves both the --db catalog lookup and the same-folder search without --db, so both now accept .heif. Search order is heic, heif, jpg, jpeg, and the _HEVC variant uses the same list. Docs in ARCHITECTURE.md, GUIDE.md, and README.md list HEIC, HEIF, JPG, and JPEG. Pairing on row content was declined by the maintainer.

Closes on promotion: #276

Tests: two new cases in LivePhotoCatalogTests (rename case with --db, and a no-db .heif companion). Full suite passes locally.

Pre-existing findings, not filed

  • PhotoCleaner/ProcessTask.cs:61, pre-existing: the extension set is a FrozenSet, so companion search order is not guaranteed by type. Only matters when several same-stem stills exist, and each pair is confirmed by ContentIdentifier. Not widened by this change.

🤖 Generated with Claude Code

Add .heif to the companion extension list so a still cataloged as .heif
and renamed to .heic in the same round still pairs with its video, for
both the --db lookup and the same-folder search.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings November 18, 2026 20:04
@ptr727

ptr727 commented Nov 18, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head cb093083293bedad606de1971a5bdc5acd9478a0, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@codecov

codecov Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 41.14%. Comparing base (a3158ce) to head (66acba7).
⚠️ Report is 117 commits behind head on develop.

Files with missing lines Patch % Lines
PhotoCleaner/ProcessTask.cs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #287      +/-   ##
===========================================
- Coverage    43.37%   41.14%   -2.24%     
===========================================
  Files           28       27       -1     
  Lines         3896     4149     +253     
  Branches       306      362      +56     
===========================================
+ Hits          1690     1707      +17     
- Misses        2154     2372     +218     
- Partials        52       70      +18     
Flag Coverage Δ
dotnet 41.14% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The change still has an active moderate correctness issue because unordered FrozenSet enumeration can select the wrong companion, plus a comment that contradicts the new HEIF behavior.

2 open issues
What changed in this PR

This pull request adds .heif support for Live Photo companion detection in database-backed and same-folder processing, including same-round .heif to .heic renames.

Changes:

  • Add .heif to the shared companion extension candidates.
  • Add database and no-database regression tests.
  • Update Live Photo documentation in the architecture guide, user guide, and README.
File Description
README.md Updates the Live Photo support description to include HEIF companions.
PhotoCleanerTests/​LivePhotoCatalogTests.cs Adds coverage for database rename pairing and same-folder HEIF companion detection.
PhotoCleaner/​ProcessTask.cs Adds HEIF to Live Photo companion matching for database and same-folder searches.
GUIDE.md Documents HEIF as a supported Live Photo still extension.
ARCHITECTURE.md Documents HEIF support in Live Photo companion detection rules.

Review effort: Lite

Comment thread PhotoCleaner/ProcessTask.cs Resolved
Comment thread PhotoCleaner/ProcessTask.cs Resolved
@ptr727 ptr727 added the comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses label Nov 18, 2026
@ptr727

ptr727 commented Nov 18, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 66acba7d43a1343f7a1152be0d32072a8c12aa54, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@ptr727
ptr727 merged commit 3d1c97b into develop Nov 18, 2026
23 checks passed
@ptr727
ptr727 deleted the fix/live-photo-heif-companion branch November 18, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants