How does one batch-change .jpg file date information?

Asked by EWJLamb

Hello,
 I'm using a Kinon Coolpix camera with USB cable and to my sheer delight it all gets loaded ontp the PC automatically. However, the dates are all wrong, so the bar charts etc of when I was actively taking photos is glitzy but incorrect.
The reason for this is because the camera was not set up properly.
The dates are however relative to one another, accurate, therefore leading to the question:
If I have at least ONE CORRECT DATE for the batch of photographs, how may this be used as a reference to CORRECT the date settings of all my photo downloads for this batch??
I am very grateful for any pointer you may have, and look forward to learning more. Cheers
Jon

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Kieran Hogg (xerosis) said :
#1

If you open a terminal (Applications -> Accessories -> Terminal) then change to your directory, e.g. 'cd Photos/Holiday' then type 'touch -t 0808202233 *.jpg' assuming they're all jpgs which is in the format YYMMDDDhhmm so just replace that string with the one you want to use.

Revision history for this message
EWJLamb (ewjlamb) said :
#2

Thank you, that is v. interesting however.... is there any way of cascading
down subdirectories, given the structure as provided by Nikon/Linux
interface?
If not, nevermind, it helps...

Jon

On Wed, Aug 20, 2008 at 10:34 PM, Kieran Hogg <
<email address hidden>> wrote:

> Your question #42721 on Ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+question/42721
>
> Status: Open => Answered
>
> Kieran Hogg proposed the following answer:
> If you open a terminal (Applications -> Accessories -> Terminal) then
> change to your directory, e.g. 'cd Photos/Holiday' then type 'touch -t
> 0808202233 *.jpg' assuming they're all jpgs which is in the format
> YYMMDDDhhmm so just replace that string with the one you want to use.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.edge.launchpad.net/ubuntu/+question/42721/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.edge.launchpad.net/ubuntu/+question/42721
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Jad Madi (jad) said :
#3

Try something like this

find /path/to/root/of/jpg/directory/ -iname "*.jpg" -exec du -sh {} \;

if succeed replace du -sh with Kieran Hogg command.

Can you help with this problem?

Provide an answer of your own, or ask EWJLamb for more information if necessary.

To post a message you must log in.