Prevent any type of metadata fixes, just rename only

Started by theprof, November 23, 2024, 02:59:45 PM

Previous topic - Next topic

theprof

exiftool -P -F -overwrite_original_in_place -api LargeFileSupport \
        -FileOrder DateTimeOriginal -FileOrder CreateDate -FileOrder ModifyDate -FileOrder -FileSize -FileOrder FileModifyDate \
        -api QuickTimeUTC \
        -ext '*' \
        -d "%Y-%m-%d_%H-%M-%S_%%.2nc" \
        '-FileName<${FileModifyDate}.$FileTypeExtension' \
        '-FileName<${ModifyDate;$_ = undef if $_ lt "1971"}.$FileTypeExtension' \
        '-FileName<${DateTimeOriginal;$_ = undef if $_ lt "1971"}.$FileTypeExtension' \
        '-FileName<${CreateDate;$_ = undef if $_ lt "1971"}.$FileTypeExtension' \
        -r "$dir_path"


I just want to rename the file name only according to the "create date". I don't want exiftool to do any metadata fixes or change the file in any form except the file name. The reason is that I have checksums and I need them to match after running exiftool.

StarGeek

When you write to just the filename, nothing will be edited in the file. I don't think the -F (-fixBase) will change anything if nothing is written to the EXIF tags, but you should remove it just in case.

The -F option really shouldn't be used in a standard command. Only when you fix the offsets that are actually broken.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype