![]() ![]() It is a command-line tool that can be used to manipulate image metadata, such as EXIF tags, GPS data, and other embedded data. ![]() Using the -fileOrder DateTimeOriginal argument makes sure that images are processed in order, and numbering strictly follows that order, otherwise shots takes in quick succession are not guaranteed to be renumbered in exact order they were taken.In Kali Linux, Exiftool is a powerful tool used for viewing, editing, and extracting metadata from image files. Numbering begins at 001 and continues to 999, so if you shoot 1000 or more images in one day you must modify the script (change 3nc to 4nc, the numeric value = how many digits to use). Selected files are renamed in the following pattern YYYYMMDD-001.jpg. It also ignores any files that are not JPEGs so I do not need to worry about what is in subdirectories. I use the following script, placed in ~/.local/share/nautilus/scripts (this should work for any Linux distro using Nautilus as a file manager): #!/bin/bashĮxiftool -fileOrder DateTimeOriginal -recurse -extension jpg -ignoreMinorErrors '-FileName ![]() I'll explain why that's important in a minute. The three zeros after the time are a copy number put there by %%-03.c in the date format. The pattern contains date format codes that fill in various bits and pieces from the date. The -d switch tells ExifTool to format dates according to the next argument's pattern. It has a steep learning curve, but once you're over it, the kind of renaming you're after is a snap: exiftool -d '%Y%m%d-%H%M%%-03.c.%%e' '-filename ![]()
0 Comments
Leave a Reply. |