Anno domini 2021 Sun, 11 Jul 11:58:13 +0000 dep via tde-users scripsit:
On Sun, Jul 11, 2021 at 6:34 AM, Dr. Nikolaus Klepp office@klepp.biz wrote:
It might be that "exiftool" already has the functionality needed - quote from the man page:
exiftool '-FileModifyDate<DateTimeOriginal' dir Use the original date from the meta information to set the same file's filesystem modification date for all images in a directory.
A problem with unconstrained exiftool is that to be safe it makes a copy of each file it modifies, so there's generally a lot of cleaning up to do after running it.
Not in this case, just put some images in a temprary folder and run:
$ exiftool '-FileModifyDate<DateTimeOriginal' .
.. nothing to clean up :)
Nik
dep Pictures: http://www.ipernity.com/doc/depscribe/album Column: https://www.athensnews.com/opinion/columns/the_view_from_mudsock_heights/