To recurse sub-directories, add -r
, specify .
and filter by extension.
Filtering only some extensions:
- photos
-ext jpg -ext orf -ext ori -ext dng -ext heic -ext PEF -ext RAF -ext SRF -ext NEF -ext X3F -ext KDC
- videos
-ext mp4 -ext mov -ext mts -ext avi
- sidecar
-ext xmp -ext mie
To display tag names, instead of descriptions, add -s
SRF files (old Sony cameras RAW e.g. DSC-F828), KDC files (old Kodak cameras RAW e.g. P880) can't be updated by Exiftool, so changes to metadata needs to be recorder in MIE and/or XMP sidecar files.
X3F files (RAW Sigma) is updated, but Lightroom won't read some tags (e.g. EXIF:Artist)
exiftool "-FileCreateDate<Exif:CreateDate" "-FileModifyDate<Exif:ModifyDate" *
exiftool "-FileCreateDate<Exif:CreateDate" "-FileModifyDate<Exif:CreateDate" *
exiftool -overwrite_original "-AllDates+=00:00:00 01:00:00" *
exiftool -overwrite_original "-AllDates-=00:00:00 01:00:00" *
exiftool -overwrite_original "-PreservedFileName<Filename" *
exiftool -overwrite_original "-Filename<PreservedFileName" *
Rename files preserving the original file name and adding in front creation date and time from Exif tag
exiftool -d "%Y%m%d-%H%M%S-%%f.%%e" "-filename<Exif:CreateDate" *
Rename files preserving the original file name and adding in front creation date and time from Quicktime tag
exiftool -d "%Y%m%d-%H%M%S-%%f.%%e" "-filename<QuickTime:CreateDate" *
exiftool -overwrite_original -if "not $LensID" -LensMake="TTArtisan" -LensModel="APS-C 35mm F1.4" -FocalLength="35" -MaxApertureValue="1.4" -FocalLengthIn35mmFormat="52" -LensInfo="35 35 1.4 16" -ext jpg -ext raf *
exiftool -overwrite_original -if "$LensID eq 'K or M Lens'" -LensMake="Pentax" -LensModel="SMC Pentax-M 50mm F1.7" -FocalLength="50" -MaxApertureValue="1.7" -FocalLengthIn35mmFormat="76.5" -LensInfo="50 50 1.7 22" -LensFocalLength="50" -ext jpg -ext dng -ext pef *
exiftool -overwrite_original -if "not $LensID" -LensMake="Pentax" -LensModel="SMC Pentax-M 50mm F1.7" -FocalLength="50" -MaxApertureValue="1.7" -FocalLengthIn35mmFormat="76.5" -LensInfo="50 50 1.7 22" -LensFocalLength="50" -ext jpg -ext raf *
exiftool -overwrite_original -if "not $LensID" -LensMake="Tamron" -LensModel="Tamron AF 70-300mm F4-5.6 LD Macro 1:2" -FocalLengthIn35mmFormat="200" -LensInfo="70 300 4 32" -LensFocalLength="300" -ext jpg -ext raf *
exiftool -overwrite_original -"exif:Artist=Gianluca Hotz" -"iptc:By-line=Gianluca Hotz" -"XMP-dc:Creator=Gianluca Hotz" *
exiftool -if "not $exif:Copyright" -filename *
exiftool -if "$directory =~ /Unknown Author/i" -if "not $iptc:By-Line" -filename *
exiftool -overwrite_original -if "$XMP-dc:Creator" -if "not $exif:Artist" -"exif:Artist<XMP-dc:Creator" *
exiftool -overwrite_original -if "$XMP-dc:Creator" -if "not $iptc:By-line" -"iptc:By-line<XMP-dc:Creator" *
exiftool -overwrite_original -if "$XMP-dc:Rights" -if "not $exif:Copyright" -"exif:Artist<XMP-dc:Rights" *
exiftool -overwrite_original -if "$XMP-dc:Rights" -if "not $iptc:CopyrightNotice" -"iptc:CopyrightNotice<XMP-dc:Rights" *