![]() If the file is not an Exif file, or the DateTimeOriginalĭoes not contain a valid value, the file date is used. ![]() This option causes files to be renamed and/ or mmoved using the date information from the Exif header "DateTimeOriginal" field. Some useful options are: -ft Sets the file's system time stamp to what is stored in the Exif header. I always prefer using this, it’s failproof and easy with jhead from the package jhead, see man jhead for details. Stay with me for a better way.Įvery regular photo has an Exif header which contains the correct time stamp of when the photo was taken, provided the date and time settings of the camera were correct. You could do that with touch and a loop like for i in *.jpg doīut that’s not very exact, as your file names only contain the date without any time information, the file’s time will thus be set to 00:00:00.000000000. ![]() (no exiftool '-alldates exiftool -alldates 19821011_trip.jpg Unfortunately the filename must contain a timestamp (HHMMSS) for this to work, like so: exiftool "-alldates exiftool -alldates 19821011_trip.jpg exiftool has a parameter to parse the filename for something that looks like a date and timestamp and then set all these dates at once to that value. Let's take your 19821011_trip.jpg as an example and set all three attributes DateTimeOriginal, CreateDate, and ModifyDate to Oct 11, 1982. But that's another story and you want it just the other way round. ![]() For example, it is possible to move files around according to the EXIF attribute CreateDate and move files to subdirectories like 2018Īnd so on. It can show and manipulate both filenames and EXIF data. ![]() exiftool is in the standard repositories. If it is not yet installed, run sudo apt install libimage-exiftool-perlįirst. ls -l shows).įortunately, there is a handy tool for this called exiftool. I assume you want to change the EXIF data of your scanned images according to the timestamp from the image's filename (not from the time the file was created like e.g. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |