Discussion:
[Darktable-users] sorting imported photos into folders according to the date of the photo taken
Mark Farnell
2013-01-07 09:58:21 UTC
Permalink
Currently, the darktable function sort imported photos into photos
according to the date of the photo imported.

However are there any way to specify the photos to be sorted into folders
according to the date of the photo being created instead?

Mark
Patrick Shanahan
2013-01-07 14:19:59 UTC
Permalink
Post by Mark Farnell
Currently, the darktable function sort imported photos into photos
according to the date of the photo imported.
However are there any way to specify the photos to be sorted into folders
according to the date of the photo being created instead?
Use exiv2 or exiftool to reset the "file date" to the "photo creation
date" prior to importing into darktable. I have a one-line script/alias I
use:

alias redate='lc;exiftool -overwrite_original
'\''-DateTimeOriginal>FileModifyDate'\'' ./*.{nef,jpg}'

that is one line with a <space> after "-overwrite_original"
lc is lowercase, alias lc='/usr/bin/lowercase_filenames'
modify ./*.{nef,jpg} to suit your particular needs

I use exiftool but exiv2 provides similar function, modification
necessary. Looking at exiv2 the alias would be much simpler, but...
--
(paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711
http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2
http://en.opensuse.org openSUSE Community Member
Registered Linux User #207535 @ http://linuxcounter.net
Patrick Shanahan
2013-01-07 14:41:31 UTC
Permalink
Post by Patrick Shanahan
Post by Mark Farnell
Currently, the darktable function sort imported photos into photos
according to the date of the photo imported.
However are there any way to specify the photos to be sorted into folders
according to the date of the photo being created instead?
Use exiv2 or exiftool to reset the "file date" to the "photo creation
date" prior to importing into darktable. I have a one-line script/alias I
alias redate='lc;exiftool -overwrite_original
'\''-DateTimeOriginal>FileModifyDate'\'' ./*.{nef,jpg}'
that is one line with a <space> after "-overwrite_original"
lc is lowercase, alias lc='/usr/bin/lowercase_filenames'
modify ./*.{nef,jpg} to suit your particular needs
I use exiftool but exiv2 provides similar function, modification
necessary. Looking at exiv2 the alias would be much simpler, but...
I frequently use two bodies on shoots and to properly sequence the photos
I have:

1. A script to rename files by adding a prefix, hhmmss, obtained from
the create-date (based on exiftool). Can provide YYYYMMDDHHMMSS
2. A script to correct the time-diff between the two bodies if I failed
to sync the camera clocks beforehand (based on exiftool)
3. A script to add geo-location data recorded with my android phone
during the shoot and to correct time-diff to the cameras, if any.
--
(paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711
http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2
http://en.opensuse.org openSUSE Community Member
Registered Linux User #207535 @ http://linuxcounter.net
Mark Farnell
2013-01-07 19:00:02 UTC
Permalink
Thanks for your tips on sorting the filename of the photos. However in
Darktable, when I import directly from a camera, or an SD card, darktable
tend to put the images into the folder named with the date of import.

How can I change the behaviour of darktable to putting the images into the
folder named with the file creation date, or better, the exif date instead?
Post by Mark Farnell
Post by Patrick Shanahan
Post by Mark Farnell
Currently, the darktable function sort imported photos into photos
according to the date of the photo imported.
However are there any way to specify the photos to be sorted into
folders
Post by Patrick Shanahan
Post by Mark Farnell
according to the date of the photo being created instead?
Use exiv2 or exiftool to reset the "file date" to the "photo creation
date" prior to importing into darktable. I have a one-line script/alias
I
Post by Patrick Shanahan
alias redate='lc;exiftool -overwrite_original
'\''-DateTimeOriginal>FileModifyDate'\'' ./*.{nef,jpg}'
that is one line with a <space> after "-overwrite_original"
lc is lowercase, alias lc='/usr/bin/lowercase_filenames'
modify ./*.{nef,jpg} to suit your particular needs
I use exiftool but exiv2 provides similar function, modification
necessary. Looking at exiv2 the alias would be much simpler, but...
I frequently use two bodies on shoots and to properly sequence the photos
1. A script to rename files by adding a prefix, hhmmss, obtained from
the create-date (based on exiftool). Can provide YYYYMMDDHHMMSS
2. A script to correct the time-diff between the two bodies if I failed
to sync the camera clocks beforehand (based on exiftool)
3. A script to add geo-location data recorded with my android phone
during the shoot and to correct time-diff to the cameras, if any.
--
(paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711
http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2
http://en.opensuse.org openSUSE Community Member
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Darktable-users mailing list
https://lists.sourceforge.net/lists/listinfo/darktable-users
Patrick Shanahan
2013-01-07 19:36:15 UTC
Permalink
Post by Mark Farnell
Thanks for your tips on sorting the filename of the photos. However in
Darktable, when I import directly from a camera, or an SD card,
darktable tend to put the images into the folder named with the date of
import.
The Darktable programmers may find time to offer that capability, indeed
it may already be there but I do not see it, and there are many more
pressing tasks at hand. And there are several other means available to
accomplish your wishes.
Post by Mark Farnell
How can I change the behaviour of darktable to putting the images into
the folder named with the file creation date, or better, the exif date
instead?
Maybe you cannot, but....

Do not use dt to *import*, move files from camera to computer. exiftool
may be used to "move" files from one location to another location named by
creation-date of the photos and rename the files also, if desired.
Federico Bruni
2013-01-07 19:46:50 UTC
Permalink
Post by Mark Farnell
Thanks for your tips on sorting the filename of the photos. However in
Darktable, when I import directly from a camera, or an SD card,
darktable tend to put the images into the folder named with the date of
import.
How can I change the behaviour of darktable to putting the images into
the folder named with the file creation date, or better, the exif date
instead?
It's not currently possible to use the EXIF date. Follow this issue if
you want to get notified in case some developer starts working on it:

http://www.darktable.org/redmine/issues/8415

But you can use the import date, I can't remember the name of the
variables right now.. have a look at the tooltips.

That said, I want to use Exif data to name my files, so currently I must
use exiv2 or rapidphotodownloader and then import the files in Darktable.
--
Federico
Nick Payne
2013-01-07 19:46:55 UTC
Permalink
Post by Mark Farnell
Thanks for your tips on sorting the filename of the photos. However
in Darktable, when I import directly from a camera, or an SD card,
darktable tend to put the images into the folder named with the date
of import.
How can I change the behaviour of darktable to putting the images into
the folder named with the file creation date, or better, the exif date
instead?
Why not import with something like gThumb, which will do that for you,
and then import the folder on disk into Darktable.

Nick

Loading...