Replace Date by Exif Date in DB Replace Date by Exif Date in DB
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Replace Date by Exif Date in DB

Started by Grann0n, November 12, 2011, 09:51:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Grann0n

Hi all,

I've one thousand and half pictures to upload (I made a new website and decided to install a fresh coppermine instead of using the old one) and I want to use the EXIF date for sorting pictures.

I found no MOD for the last version (and don't want to maintain one) and I'm looking for a SQL script or a batch process to replace the upload date in DB by the one coming for the EXIF.

Thanks for help

ΑndrĂ©

It's not recommended to manipulate the database. If you want to do that anyway, you have to ensure that all of your pictures have the needed EXIF data and Coppermine is able to read it. If you're sure that all data is available, you have to write a small script that reads the data from the exif table, calculates the timestamp from the correct exif field and write it to the corresponding row in the pictures table, for each picture.