Commit c99c65e
committed
Refactor HEIC metadata extraction with extensible path system
- Separate EXIF tag IDs from root paths for better maintainability
- Create IFD_ROOT_PATHS, EXIF_ROOT_PATHS, GPS_ROOT_PATHS vectors
- Add ReadDateTimeFromPaths, ReadStringFromPaths, ReadIntegerFromPaths,
ReadDoubleFromPaths, ReadMetadataFromPaths helper methods
- Refactor ExtractAllEXIFFields and ExtractGPSData to use path vectors
- Add HEIC/HEIF unit tests with graceful skip when test files unavailable
This refactoring follows DRY principles and makes it easy to add support
for additional image formats (PNG, WebP) in the future by simply adding
new root paths to the vectors.1 parent e0e996d commit c99c65e
File tree
3 files changed
+312
-146
lines changed- src/modules/powerrename
- lib
- unittests
3 files changed
+312
-146
lines changed
0 commit comments