Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Change Image File Timestamp to Match EXIF Data

by Limbic~Region (Chancellor)
on Jun 01, 2009 at 14:05 UTC ( [id://767259]=note: print w/replies, xml ) Need Help??


in reply to Change Image File Timestamp to Match EXIF Data

shoness,
I catalog images by the date each was taken.

I do too. It really sucks when the camera has the wrong date time stamp. In that case, it the EXIF data you need to modify - see (Solved) Change "Date Picture Taken" with Image::ExifTool.

I would recommend checking the return of utime since it may fail. I also agree with the other comment that perhaps you want to warn and not die. You might also want to consider not updating the time stamp unless it is different.

I am kind of interested in what tool you use to organize your pictures that depends on the timestamp of the file and not the internal Exif data. I personally have written my own tools but I completely ignore the file time stamp and don't run into the problem you are having.

Cheers - L~R

  • Comment on Re: Change Image File Timestamp to Match EXIF Data

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://767259]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-19 04:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found