2/16/2023 0 Comments Exiftool install lightroomThe above command will recursively go through all the subfolders and files under the defined path and delete all files with the defined file extension. One way to do this manually is by opening a terminal session on your Mac and entering this command: $ find -name "*." -type f -delete However, this option is unfortunately missing in the DNG Converter. In Lightroom, you have the option to have your old RAW files deleted automatically after conversion. This can be done from within Lightroom or with Adobe’s free DNG Converter. Recently, I decided to convert all my old RAW files to DNG. Fix_DNG_date.sh /Volumes/Photos/Archive/2015 To run the script, you simply give the path to check. Let’s say we call the script Fix_DNG_date.sh. Output=$(/Applications/Affinity\ Photo.app/Contents/Resources/exiftool -createdate "$fixentry" | grep Create | sed s/://g | sed s/\ //g | sed 's/^CreateDate//' | sed 's/.$//') So I’ve made a script to do it automatically for all DNG files found under a defined path: #!/bin/bashĭngfiles=$(find "$1" -name "*.dng" | sed 's/ /\\-/g' | sed 's/dng\\-/dng /g')įixentry=$(echo $entry | sed 's/\\-/ /g') But this isn’t easy to do manually for lots and lots of newly converted DNG files. Okay, now we can check the date the photo was taken and update the creation date of the file. Once you have ExifTool, you can check the date the photo was taken by executing: $ exiftool -createdate In fact, I didn’t have to install this tool because it’s already bundled with Affinity Photo. This tool is so awesome that it’s even used by various commercial applications. This is fine except how do you know when a photo was taken? You could go to Lightroom (or some other application) to check but I prefer a command line interface. As it turns out, you can easily change the creation date of a file by simply executing the following terminal command (Mac/Linux): $ touch -t I would prefer if the creation date was the same date as when the photos were taken. A “problem” I noticed when converting my RAW files to DNG is that the file creation date of the DNG files is the date the conversion was done.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |