[metadata] Files/database sychronisation of the EXIF metadata (datetimeOriginal) #336

Closed
opened 2026-10-04 23:52:45 +02:00 by adam · 7 comments
Owner

Reported by Eric B on 12 Jun 2006 20:10

In the administration panel, the "synchronise metadata" function take the metadata from the EXIF and repace the data stored in the database.
Concerning the date, it is particulary bad for those like me which may have wrong EXIF dateTime and entered the true date in date_creation field with an old version of PWG.
So IMHO, this date_creation should not be erased, but stored from the EXIF DateTimeOriginal only if the field is empty.

Additional information: See topic on forum:
http://forum.phpwebgallery.net/viewtopic.php?id=3919&p=1

Piwigo Bugtracker #415

**Reported by Eric B on 12 Jun 2006 20:10** In the administration panel, the &quot;synchronise metadata&quot; function take the metadata from the EXIF and repace the data stored in the database. Concerning the date, it is particulary bad for those like me which may have wrong EXIF dateTime and entered the true date in date_creation field with an old version of PWG. So IMHO, this date_creation should not be erased, but stored from the EXIF DateTimeOriginal only if the field is empty. **Additional information:** See topic on forum: http://forum.phpwebgallery.net/viewtopic.php?id=3919&amp;p=1 [Piwigo Bugtracker #415](http://piwigo.org/bugs/view.php?id=415) <!-- github-sync-id:97254098 -->
adam closed this issue 2026-10-04 23:52:45 +02:00
Author
Owner

Comment posted by plg on 13 Jun 2006 14:08

I won't add this feature for 1.6.0, maybe for 1.6.1 or for 1.7.

**Comment posted by plg on 13 Jun 2006 14:08** I won&#039;t add this feature for 1.6.0, maybe for 1.6.1 or for 1.7. <!-- github-comment-id:124888670 -->
Author
Owner

Comment posted by VDigital on 11 Oct 2007 21:39

If I will do only once point in next release it would be that one.

**Comment posted by VDigital on 11 Oct 2007 21:39** If I will do only once point in next release it would be that one. <!-- github-comment-id:124888676 -->
Author
Owner

Comment posted by VDigital on 30 Nov 2007 16:38

Modules to be changed:
admin/include/functions_metadata.php (
$exif = get_sync_exif_data($file);
and never $exif will be used,
creation_date will be erased even by blanks,
and in all case with no care of distant or local site.
Only local pictures will be overridden if exif values are available for the current picture).

admin/site_update.php (
$data = $site_reader->get_element_metadata(
$file,
in_array($id, $has_high_images)
);
and in that case local or distant site is taken as a different approach,
and in any case a none exif file will return a blank date which will erase a valid current date. Because we are in mass_updates process, Exif fields in $data have to be overridden by the current picture values if Exif aren't available for this picture).

**Comment posted by VDigital on 30 Nov 2007 16:38** Modules to be changed: admin/include/functions_metadata.php ( $exif = get_sync_exif_data($file); and never $exif will be used, creation_date will be erased even by blanks, and in all case with no care of distant or local site. Only local pictures will be overridden if exif values are available for the current picture). admin/site_update.php ( $data = $site_reader-&gt;get_element_metadata( $file, in_array($id, $has_high_images) ); and in that case local or distant site is taken as a different approach, and in any case a none exif file will return a blank date which will erase a valid current date. Because we are in mass_updates process, Exif fields in $data have to be overridden by the current picture values if Exif aren&#039;t available for this picture). <!-- github-comment-id:124888680 -->
Author
Owner

Comment posted by VDigital on 5 Sep 2008 22:17

rvelices resolved it in Synchro (Thxs to him)
Edit-picture has a metadata synchronization icon.
The process behind is also bugged.
More than this metadata synchronization is tried even against a distant site.

A bug still exists.

**Comment posted by VDigital on 5 Sep 2008 22:17** rvelices resolved it in Synchro (Thxs to him) Edit-picture has a metadata synchronization icon. The process behind is also bugged. More than this metadata synchronization is tried even against a distant site. A bug still exists. <!-- github-comment-id:124888685 -->
Author
Owner

Comment posted by rvelices on 6 Sep 2008 18:18

I unassign myself ...
what this guy is asking is different than http://bugs.phpwebgallery.net/view.php?id=132 which I solved...

I think we should close this bug without correcting the requested feature...

**Comment posted by rvelices on 6 Sep 2008 18:18** I unassign myself ... what this guy is asking is different than http://bugs.phpwebgallery.net/view.php?id=132 which I solved... I think we should close this bug without correcting the requested feature... <!-- github-comment-id:124888688 -->
Author
Owner

Comment posted by VDigital on 7 Sep 2008 05:34

Bug is solved, but use_iptc and use_exif erase the related column contents in images table.
If we close this bug, we have to ensure another one is open.

**Comment posted by VDigital on 7 Sep 2008 05:34** Bug is solved, but use_iptc and use_exif erase the related column contents in images table. If we close this bug, we have to ensure another one is open. <!-- github-comment-id:124888696 -->
Author
Owner

8 years with this "bug" still opened. I prefer to close it now and if it still exists in recent versions of Piwigo, we will have a new and accurate issue report.

8 years with this "bug" still opened. I prefer to close it now and if it still exists in recent versions of Piwigo, we will have a new and accurate issue report. <!-- github-comment-id:215348287 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#336