Add HEIF/AVIF EXIF metadata extraction and UI support (#44466)

- Support EXIF extraction from HEIF/HEIC and AVIF images by detecting
container format and using correct WIC metadata paths.
- Extend supported file extensions to include .heic, .heif, and .avif.
- Add unit tests and test data for HEIF/AVIF extraction, with graceful
handling if required Windows Store extensions are missing.
- Update PowerRename settings UI to show HEIF/AVIF extension status and
provide install buttons.
- Extend ViewModel to detect/install required extensions and expose
status for binding.

<!-- Enter a brief description/summary of your PR here. What does it
fix/what does it change/how was it tested (even manually, if necessary)?
-->
## Summary of the Pull Request

<!-- Please review the items on the PR checklist before submitting-->
## PR Checklist

- [x] Closes: #43758
<!-- - [ ] Closes: #yyy (add separate lines for additional resolved
issues) -->
- [ ] **Communication:** I've discussed this with core contributors
already. If the work hasn't been agreed, this work might be rejected
- [ ] **Tests:** Added/updated and all pass
- [ ] **Localization:** All end-user-facing strings can be localized
- [ ] **Dev docs:** Added/updated
- [ ] **New binaries:** Added on the required places
- [ ] [JSON for
signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json)
for new binaries
- [ ] [WXS for
installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs)
for new binaries and localization folder
- [ ] [YML for CI
pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml)
for new test projects
- [ ] [YML for signed
pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml)
- [ ] **Documentation updated:** If checked, please file a pull request
on [our docs
repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys)
and link it here: #xxx

<!-- Provide a more detailed description of the PR, other things fixed,
or any additional comments/features here -->
## Detailed Description of the Pull Request / Additional comments

<!-- Describe how you validated the behavior. Add automated tests
wherever possible, but list manual validation steps taken as well -->
## Validation Steps Performed

---------

Co-authored-by: Yu Leng <yuleng@microsoft.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
moooyo
2026-01-08 11:18:47 +08:00
committed by GitHub
parent 9c58574484
commit 72fc8288eb
12 changed files with 724 additions and 46 deletions

View File

@@ -1698,6 +1698,35 @@ Made with 💗 by Microsoft and the PowerToys community.</value>
<value>Provides extended features but may use different regex syntax</value>
<comment>Boost is a product name, should not be translated</comment>
</data>
<data name="PowerRename_ExtensionsHeader.Header" xml:space="preserve">
<value>Extensions</value>
</data>
<data name="PowerRename_HeifExtension.Header" xml:space="preserve">
<value>HEIF image metadata extraction</value>
</data>
<data name="PowerRename_HeifExtension.Description" xml:space="preserve">
<value>Requires HEIF Image Extensions from Microsoft Store to extract metadata from HEIC/HEIF files</value>
<comment>HEIF is a file format name, do not translate</comment>
</data>
<data name="PowerRename_HeifExtension_Install.Content" xml:space="preserve">
<value>Install from Microsoft Store</value>
</data>
<data name="PowerRename_HeifExtension_Installed.Text" xml:space="preserve">
<value>Installed</value>
</data>
<data name="PowerRename_AvifExtension.Header" xml:space="preserve">
<value>AVIF image metadata extraction</value>
</data>
<data name="PowerRename_AvifExtension.Description" xml:space="preserve">
<value>Requires AV1 Video Extension from Microsoft Store to extract metadata from AVIF files</value>
<comment>AVIF is a file format name, do not translate</comment>
</data>
<data name="PowerRename_AvifExtension_Install.Content" xml:space="preserve">
<value>Install from Microsoft Store</value>
</data>
<data name="PowerRename_AvifExtension_Installed.Text" xml:space="preserve">
<value>Installed</value>
</data>
<data name="MadeWithOssLove.Text" xml:space="preserve">
<value>Made with 💗 by Microsoft and the PowerToys community.</value>
</data>