Re: 'nother question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Anno domini 2021 Sat, 10 Jul 19:31:14 -0500
 Michael via tde-users scripsit:
> On Saturday 10 July 2021 10:43:56 am Jim via tde-users wrote:
> > On Sat, Jul 10, 2021 at 15:26 (+0000), dep via tde-users wrote:
> > >
> > > Maybe there's a script someplace that
> > > will overright modified date with creation date. Not a thing everyone
> > > would want to do, but useful in a variety of circumstances.
> > > --
> > > dep
> >
> > In case this is useful to you... it is a little script that sets the
> > modification time of a JPEG to its EXIF time (which would then give
> > you the date you seem to want in your file manager).  If you save it
> > to a file called "set-photo-time" and give it execute perms, then you
> > can run it as follows:
> >         set-photo-time file1.jpg file2.jpg file3.jpg file4.jpg ...
> > It requires the "exif" program, which you may or may not already have
> > installed.  It works for me, but use at your own risk.
> >
> 
> Another alternative I wrote several years ago:
> 
> http://inet-design.com/blogs/michael/extract-exif-datetimeoriginal-field-and-prepend-it-file-name-facilitate-image-sorting
> 
> Although looking at that, it's been up-rev'ed, so attaching the last version, 
> but do read its comments in the code before running.
> 
> Best,
> Michael
> 

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.


Nik



-- 
Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
____________________________________________________
tde-users mailing list -- users@xxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxx
Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@xxxxxxxxxxxxxxxxxx



[Index of Archives]     [Trinity Devel]     [KDE]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]     [Trinity Desktop Environment]

  Powered by Linux