Page 1 of 1

Need help creating a script

Posted: Wed Jul 14, 2010 1:06 am
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.

Re: Need help creating a script

Posted: Wed Jul 14, 2010 4:57 am
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

Re: Need help creating a script

Posted: Sat Jul 17, 2010 4:35 am
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.

Re: Need help creating a script

Posted: Sun Jul 18, 2010 4:08 am
by marsh
-jhead is a command line Exif program which has a timestamp function.
-a wikipedia article about batch files.

Re: Need help creating a script

Posted: Wed Jul 21, 2010 5:22 am
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.

Re: Need help creating a script

Posted: Sun Jul 25, 2010 11:16 am
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