mardi 19 avril 2022

Cleanup EXIF and / or rename images using EXIFTOOL

Rename images (RAW or JPEG) in a directory using EXIF tags
Or
Clean images of unwanted tags while keeping the most important ones


  1. Download, install exiftool
  2. Create a new registry file : RenameRAFJPEGusingEXIF.reg
  3. Edit this file:


Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Shell\CleanupExif]
"Icon"="\"C:\\bin\\Images\\exiv2\\exiftool.ico\",0"
@="Cleanup EXIF meta from pictures recursively"
[HKEY_CLASSES_ROOT\Directory\Shell\CleanupExif\command]
@="\"C:\\bin\\Images\\exiv2\\exiftool.exe\" -All= -TagsFromFile @ -DateTimeOriginal -CreateDate -apertureValue -ExposureTime -LensModel -ColorSpace -icc_profile:all -iso -FocalLength -FocalLengthIn35mmFormat -ShutterSpeedValue -model -overwrite_original -L -r -ext jpg -ext jpeg \"%1\""

[HKEY_CLASSES_ROOT\Directory\Shell\RenameRafWithExif]
"Icon"="\"C:\\bin\\Images\\exiv2\\exiftool.ico\",0"
@="Rename RAW pictures recursively"
[HKEY_CLASSES_ROOT\Directory\Shell\RenameRafWithExif\command]
@="\"C:\\bin\\Images\\exiv2\\exiftool.exe\" -q -m \"-filename<${CreateDate;} ISO${ISO;} ${FocalLengthIn35mmFormat;} ${FocalLength;} f${FNumber;} Ts${ExposureTime;} ev${ExposureCompensation;} ${Model;}.%%e\" -ext RAF -ext ARW -ext RAW -ext RW2 -ext DNG \"%1\""

[HKEY_CLASSES_ROOT\Directory\Shell\RenameWithExif]
"Icon"="\"C:\\bin\\Images\\exiv2\\exiftool.ico\",0"
@="Rename JPEG pictures recursively"
[HKEY_CLASSES_ROOT\Directory\Shell\RenameWithExif\command]
@="\"C:\\bin\\Images\\exiv2\\exiftool.exe\" -q -m \"-filename<${CreateDate;} ISO${ISO;} ${FocalLengthIn35mmFormat;} ${FocalLength;} f${FNumber;} Ts${ExposureTime;} ev${ExposureCompensation;} ${Model;}.%%e\" -ext jpg -ext jpeg \"%1\""

Save and execute or import in Windows Registry Editor

Download links: