On Wednesday, 13 July 2016 07:55:35 BST Patrick Shanahan wrote:
* ianseeks <ianseeks@btinternet.com> [07-13-16 07:38]:
HI
Has anyone found an easy to use tool/script to update a photo file creation date/time to the date/time that the photo was taken? I'm having to change all my girlfriends' photos taken on her phone that are backed up to Windows 7 (ugh) and then transferred via samba into the digikam system.
I *assume* you mean making the file date/time match the exif file creation time which *should* match the date/time taken???
exiftool or exiv2 will accomplish this. I prefer exiv2 as it is compiled and much quicker as exiftool is a perl "script".
I do: exiv2 -T ./*.{nef,jpg}
you might change to: exiv2 -T ./*.jpg
changes the file date/time to match the exif image creation date/time w/o changing the file name.
I go further and change the image file name to match creation date/time: exiv2 mv \-k \-r %y%m%d_%H%M%S_:basename: \.\/*.{nef,jpg}'
results: 160713_075208_dsc9817.jpg YYMODA HHMMSS orig_file_name
I have quite an extensive collection over the last ~12 years, mostly sporting events (youth soccer), ~70000 the last four years in darktable.
Thanks Patrick, that looks the ticket. I shall go and give a spin now. -- Qt: 5.6.1 KDE Frameworks: 5.24.0 kf5-config: 1.0 plasmashell 5.7.1 Kernel: 4.6.3-1-default "openSUSE Tumbleweed (20160710) (x86_64)" -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org