Change timestamp - use file name as source of date/time

Ideas for improvements and requests for new features in XnView MP

Moderators: helmut, XnTriq, xnview

Post Reply
Sprintdriver
Posts: 68
Joined: Mon Feb 02, 2009 11:46 pm

Change timestamp - use file name as source of date/time

Post by Sprintdriver »

Hi forum.

I sometimes get images from an apple device sent in mail, and those image files typically are stripped for any exif data.

So I may sit on a bunch of files where the date and time stamp are part of the file names, such as
random list of file names received wrote:20190622_055718955_iOS.webp
20190622_055827389_iOS.webp
20190622_055845965_iOS.webp
20190622_135427744_iOS.webp
20190622_135432147_iOS.webp
20190622_135448858_iOS.webp
20190622_135456531_iOS.webp
Having a lot of these files around, it would be very useful having the option of "file name" as a fourth option under "Change timestamp / Use". You probably need to add a input field where user must define the pattern, eg "YYYYMMDD_HHMMSS*" and an option for how XnView MP should behave when encounter a file whose name doesn't match the pattern or not a valid date/time.
User avatar
michel038
XnThusiast
Posts: 1468
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

Re: Change timestamp - use file name as source of date/time

Post by michel038 »

Another software can do this task : Exiftool...
If you use Windows, you can add a "Open with" entry in XnViewMP linked to exiftool.exe ( located in addons folder) with "alldates<filename" as parameter, maybe with "overwrite_original" and -k options.... (See exiftool website for explanations)
Then, select files, right-click, Open with...

But it's a good suggestion to improve XnViewMP features
Sprintdriver
Posts: 68
Joined: Mon Feb 02, 2009 11:46 pm

Re: Change timestamp - use file name as source of date/time

Post by Sprintdriver »

michel038 wrote: Wed Jun 04, 2025 7:31 am Another software can do this task :. . . .
Yess, I know there are many ways to achieve this. In Linux, this is easilly achieved by a bash script. In Windows, either vbs or Autohotkey script are well suited for this task.
Questionable if possible to fix by a windows bat file.
michel038 wrote: Wed Jun 04, 2025 7:31 amBut it's a good suggestion to improve XnViewMP features
:D 8)
Post Reply