Hi Patrick,
This is my exiftool documentation for updating the xmp and/or the pictures
BEFORE importing the pictures and their updated xmp files into Darktable :
#*************************************************************
# Create xmp files for jpg - jpeg - png files recursively
#*************************************************************
exiftool -ext jpg -ext jpeg -ext png -tagsfromfile @ -srcfile %d%f.%e.xmp
-r .
#****************************************************************************************
#Copy date-time from FILENAME into tag "DateTimeOriginal" for all xmp files
recursively
#****************************************************************************************
exiftool -r -if 'not $DateTimeOriginal' '-DateTimeOriginal<filename'
-hierarchicalsubject+="Mobile|DateMissingFilename"
-subject+="DateMissingFilename" -ext xmp .
#*******************************************************************************************************
#Copy date-time (12:00:00) from FOLDER name into tag "DateTimeOriginal" for
all xmp files recursively
#*******************************************************************************************************
exiftool -r -if 'not $DateTimeOriginal'
'-DateTimeOriginal<${directory}:12:00 00:00:00'
-hierarchicalsubject+="Mobile|DateMissingFolder"
-subject+="DateMissingFolder" -ext xmp .
#***************************************************************************************************************************************************************
#Create the "[EXIF] DateTimeOriginal" - tag and copy the "[File]
FileModifyDate" value into this field (cfr
https://exiftool.org/forum/index.php?topic=10792.0)
#***************************************************************************************************************************************************************
exiftool -addtagsfromfile @ -datetimeoriginal-=
"-datetimeoriginal<filemodifydate" "-datetimeoriginal<createdate"
-createdate-= "-createdate<filemodifydate" "-createdate<datetimeoriginal"
-srcfile %d%f.%e.xmp -ext jpg -ext jpeg
"./Photos/2014/2014-05/10345096_751420998243123_2046058191_n.jpg"
exiftool -r -hierarchicalsubject+="Mobile|DateMissingCreatedate"
-subject+="DateMissingCreatedate" -ext xmp
"./Photos/2014/2014-05/10345096_751420998243123_2046058191_n.jpg.xmp"
#****************
#Create alldates
#****************
exiftool '-AllDates=2007:03:18 10:00:00' -ext xmp .
#**********************************
#Display time tags in all files
#**********************************
#exiftool -a -G1 -s -time:all *
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| Change date/time photos manually
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
exiftool -DateTimeOriginal='1978-05-15 12:00:00' *.*
I hope this helps.
Brgds,
Michael
On Mon, 17 Aug 2020 at 13:32, Patrick Shanahan <[email protected]> wrote:
> * Tobias Krause <[email protected]> [08-17-20 01:14]:
> > Hi,
> >
> > Thanks for all the answers.
> >
> > For me chancing the date directly in the darktable database seems the
> > easiest. I'll have a look into that soon and let you know how I did it.
> >
> > The reason for the missing metadata is that I do not have the RAWs but
> > only exports from Lightroom done without metadata...
> >
> > Regards
> > Tobias
> >
> >
> >
> > On 16.08.2020 17:08, Jean-Luc CECCOLI wrote:
> > >
> > > Hello,
> > >
> > > It may happen that the date is not available, for instance because the
> > > camera was reset and the date / time not adjusted.
> > > Or because they were taken long ago, with a camera that did not embed
> > > the information.
> > > Or... ther may be so many reasons. :-(
> > > It is possible to do almost everything from within the database - I
> > > once succeeded in modifying the path to a series of photos.
> > > You could also use exiv2 (or even xnvew, if I am not wrong) to embed
> > > the information into the files (make a backup of them before, because
> > > this may alter your files in a way that further versions of dt are not
> > > able to read thepm anymore).
> > >
> > > Hope it will help,
> > >
> > > J.-Luc
> > >
> > > > Message du 16/08/20 09:04
> > > > De : "David Vincent-Jones" <[email protected]>
> > > > A : [email protected]
> > > > Copie à :
> > > > Objet : Re: [darktable-user] Adding/changing datetime
> > > >
> > > >
> > >
> > > > All of my folders carry the date ... and I generally download
> > > daily .... that makes it easy.
> > > >
> > >
> > > On 16.08.20 08:52, Tobias Krause wrote:
> > > >
> > >
> > > Hi,
> > > >
> > > > in my database there are a bunch of pictures missing the
> > > "datetime"
> > > > information. Unfortunately there is now way I could get the
> > > original files.
> > > >
> > > > Is there a way add/change datetime within darktable - have
> > > at least the
> > > > correct day would be key to filtering by date...
> > > >
> > > > Regards,
> > > > Tobias
> > > >
> > >
> ____________________________________________________________________________
> > >
> > > > darktable user mailing list
> > > > to unsubscribe send a mail to
> > > [email protected]
> > > >
> > > >
> > >
> > >
> > > >
> > >
> ____________________________________________________________________________
> > > darktable user mailing list to unsubscribe send a mail to
> > > [email protected]
> > > >
> > >
> > >
> > >
> ____________________________________________________________________________
> > > darktable user mailing list to unsubscribe send a mail to
> > > [email protected]
>
> sqlitebrowser ~/.config/darktable/library.db
>
> --
> (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri
> http://en.opensuse.org openSUSE Community Member facebook/ptilopteri
> Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode
>
> ____________________________________________________________________________
> darktable user mailing list
> to unsubscribe send a mail to
> [email protected]
>
>
____________________________________________________________________________
darktable user mailing list
to unsubscribe send a mail to [email protected]