Public has just finished importing the videos and pictures from the digital camera to his laptop but realizes that the media files are incorrectly time-stamped. These are meant to be combined with each other depending on the files you have. Unorganized photos with corrupted and missing EXIF metadata. I've found these little snippets very useful for a folder with thousands of If you have a file with the name foo_20180418_103000.jpeg (which is in the format YYYYmmdd_HHMMSS), but the EXIF date is incorrect, you can update the EXIF date from the filename with: $ exiftool "-AllDates nonjpeg.txtĪs a bonus, this is how you can iterate over the files in nonjpeg.txt and move it to a new folder called others: $ mkdir others To fix the modified date of the file that was destroyed with the previous action, run: $ exiftool -v "-DateTimeOriginal>FileModifyDate" * With the previous action, the EXIF date might be correct, but now the modified date is set to the date the tool was invoked. Set the file modification date based on EXIF date Change it according to your own needs: $ exiftool "-DateTimeOriginal-=0:0:0 11:0:0". The following examples shifts the time by -11 hours (suppose local time is 10:00 PM, Photos will be adjusted to 11AM (previous day)). When this happens, I have to change all my photos and update it with the correct timezone. Sometimes I forgot to change the time of my camera when I travel and I shoot in my local timezone. To update the EXIF date based on this date, call: $ exiftool -v "-FileModifyDate>AllDates" * But you know that the modified date of the file is correct because that's is the date the photo was created. Suppose a photo does have an incorrect date or no EXIF metadata. $ exiftool -p '$filename' -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"'. To find all images (in JPEG) without any date run the following, recursively: $ cd photos The first mistake when editing batch EXIF metadata is assuming that all images have EXIF metadata.
0 Comments
Leave a Reply. |