Add EXIF/metadata date fallback and extension filtering to Move-PhotosByDate #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/exif-fallback-and-extension-filtering"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What does this PR do?
Adds extension filtering and an EXIF/metadata date fallback to
Move-PhotosByDate.ps1.-Extension- the set of extensions to process, defaulting to a list of common image types. Supplying it replaces the default image list.-IncludeVideo- also processes common video extensions.-ExifFallback- when a filename has no validyyyyMMdddate, reads the embedded capture date from file metadata. Photos use true EXIFDateTimeOriginal(tag0x9003) viaSystem.Drawing, falling back to the Windows Shell "Date taken" property; videos use the Windows Shell "Media created" property. The filename date always takes precedence when present and valid.The summary object now also reports
ResolvedByExifandExcludedcounts.How was this tested?
[System.Management.Automation.Language.Parser]::ParseFilereports 0 errors)Year\yyyy-MM-dd; a.mp4and a.txtexcluded; an EXIF-only image skipped (no-ExifFallback).-IncludeVideo -ExifFallbackrun:.mp4moved by filename date, date-named image moved, an image with no date in its name resolved via EXIFDateTimeOriginalto the correctYear\yyyy-MM-ddfolder (ResolvedByExif = 1),.txtexcluded.Checklist