# add the file's md5sum to its name to prevent files loseĬp "$item" "$"ĩ directories, 15 tree /tmp/new-order-pictures/ # Copy the files to the new destination and # go inside, make a new destination directory ignore character cases^^ # If we have coincidence between the name of the directory and the month # Walk through the first level directories, located in the current directory and go insideįor month in Walk through the second level directories # The destination where the new directory structure will be created I did have several images without exif data, and I was able to add exif data to the images with the command exiftool -createdate='2011:12:04 12:00:00' * -overwrite_originalĪs an example, I placed some images in a directory ~/aa/test1 and ran the tool, placing the output in ~/aa/test2. This application also handles multiple images with the same date/time by appending a numeric to the end of the filename. If the requested tag is not present, the application throws a warning and does not move that file, but continues processing. rĭepending upon which tag is present in the images. In my case, the specific command line used was exiftool '-FileName/%Y/%m-%B/%Y%m%d_%H%M%S%%-c.%%e. There is an application which can move and rename the files in a single command line - exiftool sudo apt install libimage-exiftool-perl
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |