a useful tool to change the convention of heic photo names from like IMG_0937.HEIC to 2022-05-18_185520.HEIC
-
install
exiftoolbrew install exiftool
-
get shell script
cd ~ wget https://raw.githubusercontent.com/Ran-Mori/heic-photo-naming-convention/main/heicrename.sh
-
grant executable permission
chmod +x heicrename.sh
-
specify a directory that contains heic files in it with
-doption, or a heic file with-foption, then execute it../heicrename.sh -d ~/heic-directory -f ~/heic-file.HEIC
/Users/<your username>
|--- heicrename.sh
|--- heic-directory
|--- IMG_0933.HEIC
|--- IMG_0934.HEIC
|--- IMG_0937.JPG # this is not a heic file
|--- heic-file.HEIC-
execute command below
./heicrename.sh -d heic-directory
-
output like
directory is /Users/izumisakai/heic-directory 1 image files updated 1 image files updated -
result like
/Users/<your username> |--- heic-directory |--- 2022-05-18_162905.HEIC |--- 2022-05-18_173417.HEIC |--- IMG_0937.JPG # this file will not be changed due to it's not a heic file
-
execute command below
./heicrename.sh -f heic-file.HEIC
-
output like
heic file is /Users/izumisakai/heic-file.HEIC 1 image files updated -
result like
/Users/<your username> |--- 2022-05-18_185520.HEIC
- only macos tested
- renaming action will only be successful when the heic file contains
CreateDateexif information. you can export original photos from your Mac by following this - for more naming-convention details please refer exiftool renaming examples