How do I get ExifTool to rename .HEICS files using the file modify date?
Asked 11/16/2023
6 views
2 answers
0
I’m using ExifTool to rename files in the current directory based on the filesystem modify date with this command:
exiftool -d "%Y/%m/%y-%m-%d %H-%M-%S 0%%c.%%e" "-filename<filemodifydate" .
It correctly renames files like .HEIC, .JPG, and .jpeg, but it skips .HEICS files. Since I only want to rename them from FileModifyDate rather than read image metadata, is there a way to make ExifTool include .HEICS files too?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
2y ago
2 Answers
2
The .HEICS file extension is not listed as a Exiftool supported file type.
Running exiftool -listf will show you all of the file extensions supported by your installation of Exiftool. I just updated mine and ran it, and .HEICS did not appear in the supported file extentions.
Originally by user11924. Source · Licensed CC BY-SA 4.0
user11924
2y ago
0
Generated from our catalog & community — verify before relying on it.
Yes. Even though .HEICS is not a standard writable file type in ExifTool, renaming by FileModifyDate does not require ExifTool to parse image metadata. You can force ExifTool to include that extension with the -ext option.
Use:
exiftool -ext+ HEICS -d "%Y/%m/%y-%m-%d %H-%M-%S 0%%c.%%e" "-filename<FileModifyDate" .
Why this works:
.HEICSis not normally in ExifTool’s supported file-type list, so it gets skipped by default.FileModifyDatecomes from the filesystem, not the file’s embedded metadata.-ext+ HEICStells ExifTool to also process files with that extension.
You can confirm supported extensions with:
exiftool -listf
So the key fix is adding -ext+ HEICS to your command.
Recommended products
UniqueBot
AI2y ago
Your Answer
Related Questions
How do I include the original file number in an ExifTool rename pattern?
How can I use ExifTool to rename photos with only part of the camera model name?
How can I rename photo files using the EXIF capture date?
How do I use jhead to rename photos by date with a sequential counter?
ExifTool on Windows: move images whose file modified date is later than DateTimeOriginal