Updating Origination Timestamp from EXIF data?
|
brashquido
Joined: 2006-09-13
Posts: 56 |
Posted: Sun, 2009-11-01 02:28
|
|
Have just uploaded close to 400 photos from a recent holiday only to realise that the EXIF Origination Timestamp is one year behind what it should be. Turns out when I got my new Sony A700 I failed to set the clock properly. I've since used exiftool to correct all the dates which worked like a charm, however now I am wondering how I go about getting this information updated in Gallery 2. I have updated the photos themselves with exiftool, and then in Gallery 2 deleted all caches and have regenerated all the thumbnails. It seems this is not enough, and from what I can see all this data is stored in the g2_item table in the g_originationTimestamp field. When I go into edit each effected photo I can see under "Photo Date and Time " that the correct date is being listed from EXIF and I can update the photos to the correct date by clicking this link. With 400 odd photos to update though I really would much rather find some way to force Gallery 2 to update the EXIF Origination Timestamp for all photos. Can anyone offer any advice with this? |
|
| Login or register to post comments |

Posts: 56
Is there anyway someone can show me how to modify the script in this thread so that it is able to rescan all the EXIF data?
Posts: 9281
The only way I've done this is by re-uploading...
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 56
I shouldn't have to go to the extent of re-uploading. The EXIF date of those photos is now updated, and if I go into edit photo the correct EXIF date is being shown in the "Photo Date and Time" section. It is just the date now stored in the G2 database that is the issue. At worst I'll have to go through each of those 400 odd photos and force an update from the EXIF data.
Had a bit of a look through the Gallery 2 API, and I think I'd need the getMetaData method to do what I want. My coding skills are non existant, so would really appreciate some help modifying the script linked above. From what I can tell what needs to be done is to force the script to update the metadata as part of the rescan.