Need help creating a script

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
rdkapp
Posts: 3
Joined: Wed Jul 14, 2010 12:56 am

Need help creating a script

Post by rdkapp »

I've been all over this board and the internet looking for a script to change the "Date Created" of a .jpg file to the "Date Picture Taken" for use in the batch converter feature of XnView.

I've transferred hundreds of photos from my digital camera to my computer and upon transfer, they've taken the date of transfer as the "Date Created". I'd like to have it use the "Date Picture Taken" as the "Date Created"

Can anyone help? I've been using XnView for years as a mini editor and image converter program, though I've never scripted or used the batch converter feature. I'd really like to learn and feel that a script to accomplish this would really get me going.
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: Need help creating a script

Post by marsh »

It doesn't really address question, but the change timestamp function might prove useful.

Highlight files,
Browser menu>Tools>Change timestamp
Use (and select with down arrow)
[x] EXIF: Date taken
Change
[x] File Date created
rdkapp
Posts: 3
Joined: Wed Jul 14, 2010 12:56 am

Re: Need help creating a script

Post by rdkapp »

marsh wrote:It doesn't really address question, but the change timestamp function might prove useful.

Highlight files,
Browser menu>Tools>Change timestamp
Use (and select with down arrow)
[x] EXIF: Date taken
Change
[x] File Date created
Thanks marsh, and you are right, it doesn't directly address the question, but it did open my eyes to an option of the Change Timestamp function that I wasn't aware existed. Don't know why, but my eyes never went past the 2nd option of the Change Timestamp function. The 3rd option hit the nail on the head, and I thank you for redirecting me.

On the other hand, I was looking forward to learning some scripting, so if anyone has a basic script to use with XnView, I'd appreciate it. Thanks again, marsh.
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: Need help creating a script

Post by marsh »

-jhead is a command line Exif program which has a timestamp function.
-a wikipedia article about batch files.
rdkapp
Posts: 3
Joined: Wed Jul 14, 2010 12:56 am

Re: Need help creating a script

Post by rdkapp »

marsh wrote:-jhead is a command line Exif program which has a timestamp function.
-a wikipedia article about batch files.
Thanks for the jhead recommendation. I'll have to take a look at that the next time I need to do some date changing that is difficult to handle through XnView. For those who have trouble with command line programs, I found EXIF Date Changer, which operates through the Windows environment. I found it simple to use, and it's also freeware, with an upgrade option to the Pro version at a reasonable cost ($9.95).

Thanks also for the wikipedia link. I'll have to look at that when I have some spare time. I think scripts can be a very useful time saver for various task and am interested in learning. Thanks again.
alexandreJ
Posts: 1
Joined: Sun Jul 25, 2010 10:17 am

Re: Need help creating a script

Post by alexandreJ »

I recommend exiftool http://www.sno.phy.queensu.ca/~phil/exiftool/
I am not sure it answers easily your question but it seems to have all to do it.
AJ
Post Reply