I have recovered images from a lost partition and I need to sort them or put them into a folder by the creation date in the EXIF data of each image.
I have installed digiKam and also shotwell but have not found the way to do this on any of the options.
Can anyone explain to me how to do it with either of those programs or by any other method?
My favorite solution is to set the file date the same as the exif photo date. Doing this, you can sort the files using any file explorer tool.
apt-get install jhead
)jhead -ft *
. This will set the file date in the filesystem with the create date of the exif metadataI recommend using exiftool. You can install it with
Here's a sample command that renames the files based on creation date in YYYYMMDD format and appends a sequence number at the end.
And here's a sample command that moves
image.jpg
into a directory with its creation date as its name, in the 'YYYY-MM-DD' format.There's more sample commands in the documentation: https://sno.phy.queensu.ca/~phil/exiftool/filename.html
This is the code I am using. It renames the photos adding YYYYMMDD_originalname.jpg
EDIT. In this modification, the date in the tag is passed to the name and also to the date attribute with touch. Also, if those tags do not exist, the date of modification tag is passed to the name of the file.
For sorting in folders (year and month) (YYYYMM):
A great tool is Rapid Photo Downloader
Adding the PPA
Updating and installing
Use your "lost partition" as input source and configure the target path/filenames based on your exif data in Rapid Photo Downloader
Install Phatch Photo batch processor. From the predefined actions, select the one that renames the files with date from exif.
Simplest using:
jhead -n%Y/%m/%d/%Y%m%d%H%M /Destination/*.jpg
It will sort, move and rename all your JPG's from current directory into nice directory structure with unique filenames /Year/Month/Day/YearMonthDayHourMinute.jpg
It works only on *.jpg files dough, not RAW's
There is now an extension called nautilus-columns, which adds EXIF data as well as MP3 (ID3), PDF and more metadata. These new columns can be also used as sorting source.
Install with: