![]() ![]() In this example, we format the directory name with the capture date of the file and then tell ExifTool to use that with the filename. To actually write those files, we have to specify an output directory. So we might have a directory named "2021.03.12 Los Angeles" - which ExifTool can construct for us with the filename appended: exiftool -dateTimeOriginal -d '%Y.%m.%d' -filename -S -s -p '$dateTimeOriginal Los Angeles/$filename' ~/Desktop/Originals -fast We never worry about duplicates because we keep each shoot in its own directory and use unique directory names composed of the date and location. ![]() We leave them the way the camera named them. We don't change the root names of our files. So if you wanted to know the year each image was captured, you could write: exiftool -DateTimeOriginal -d "%Y" -S -s -p '$filename shot in $dateTimeOriginal' ~/Desktop/OriginalsĪnd that year information could be used in a directory name, which will get to in a bit. All we have to do is specify the data format: exiftool -DateTimeOriginal -d "%B %e, %Y" -S -s -p '$filename shot on $dateTimeOriginal' ~/Desktop/Originals Maybe we'd like just the date and in a more readable format (like April 15, 2021). For example, let's report the height and width: exiftool -filename -ImageHeight -ImageWidth -p '$filename: height is $ImageHeight and width is $ImageWidth' ~/Desktop/Originals -fast DATES, TIMESĮxifTool can tell us the date and time the image was captured: exiftool -filename -dateTimeOriginal -p '$filename shot on $dateTimeOriginal' ~/Desktop/Originals Try any other tag or combinations of tags. "-fast" tells ExifTool just to read the Exif header and quit reading when it hits the image data."~/Desktop/Originals" tells ExifTool where to look for the image files."-p '$filename is $model'" tells ExifTool to print the actual filename followed by "is" and the model name."-filename -model" tells ExifTool to grab those two tags only.We won't show you our results because they're based on our files so they won't match yours.įirst, let's ask ExifTool to list the filenames and camera model for each image: exiftool -filename -model -p '$filename is $model' ~/Desktop/Originals -fast Let's get our feet wet with some simple commands that illustrate the basics.įor any of these one-line commands, you should be able to select the line, copy it and paste it into your terminal application. On Windows turn the singles below into doubles.Īnd if you get warnings from ExifTool that distract you from the output (as we do for our Olympus E-PL1 images), just append the -m switch to these commands. But do mind your single and double quotes. If you find the command line syntax mystifying, it may help to know it relies not only on the shell's syntax but also on Perl conventions, which is what ExifTool is written in.Īnd don't worry about case for Exif tags (we'll use camel case for readability here). Third, there's the FAQ, which you can ignore at your peril. ![]() Harvey himself often responds to questions with one-liner solutions. Use the Search option to hone in on a solution. It includes a Newbies section (which is helpful even to Old Salts) and a slightly more active section on using the application itself. In addition to a synopsis of the command, a fuller description and a catalog of its options, it provides examples of reading, writing, copying, renaming and geotagging. First there's the ExifTool Application Documentation.So before we wade in, let's point out the extensive help Harvey has provided for ExifTool users: One liners are very cool but they're also little puzzles that can be difficult to discern. Then launch Terminal or iTerm and roll up your sleeves. A mix of Raw files and JPEGs would be fine. To demonstrate a few of these features, create a folder of images copied from your archive called "Originals" on your Desktop. And you can evaluate files on the fly to write them to various locations based on criteria you set. You may know you can rename files based on Exif tags but you can also create directories and subdirectories based on tags, dates and time. We tested every command in this story multiple times (it was fun).īut lurking deep inside ExifTool is even more power. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |