Image date

halemd

Joined: 2010-03-12
Posts: 3
Posted: Thu, 2010-03-18 14:51

Using the exif/iptc plugin the date the picture was taken is displayed below the thumbnails in the album. Is this date stored anywhere in the database and if so where?

I am basically trying to get this date to be the title for the image instead of the file name.

Thanks for the help in advance.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2010-03-18 16:04

If you have the EXIF module installed, that data is only pulled into the database once, to set the data/time info for the photo itself.

Then if you put Gallery into debug mode: FAQ: How to set/use Gallery in debug mode?

You can see the timestamp properties for each item. It would take some trial and error for me (and time, which I don't have) to test to see if those timestamps correspond to the date and time that was pulled from the EXIF data on upload. The timestamp, I'm pretty sure is in the Unix timestamp format and should be able to be easily converted: http://www.onlineconversion.com/unix_time.htm

Ah, 2 seconds on Google: http://www.smarty.net/manual/en/language.modifier.date.format.php
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
halemd

Joined: 2010-03-12
Posts: 3
Posted: Thu, 2010-03-18 16:09

Thank you. I will give this a try and see what I can find out.