Permalink
Browse files

feature 620: ability to synchronize metadata from high definition pho…

…to, if no

metadata available in "web sized" photo. This commit is a report of r4683 from
update_metadata function in admin/include/functions_metadata.php in the
duplicated code get_element_metadata of admin/site_reader_local.php. See
feature 620 for details about code duplication.

git-svn-id: http://piwigo.org/svn/trunk@6076 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information...
plegall committed May 4, 2010
1 parent a00a203 commit addb6b5ddc363c52524e2bc37f41e89995c45cfb
Showing with 12 additions and 2 deletions.
  1. +12 −2 admin/site_reader_local.php
@@ -205,12 +205,22 @@ function get_element_metadata($file, $has_high = false)
if ($conf['use_exif'])
{
$data = array_merge($data, get_sync_exif_data($file) );
$exif = get_sync_exif_data($file);
if (count($exif) == 0 and isset($data['high_filesize']))
{
$exif = get_sync_exif_data($high_file);
}
$data = array_merge($data, $exif);
}
if ($conf['use_iptc'])
{
$data = array_merge($data, get_sync_iptc_data($file) );
$iptc = get_sync_iptc_data($file);
if (count($iptc) == 0 and isset($data['high_filesize']))
{
$iptc = get_sync_iptc_data($high_file);
}
$data = array_merge($data, $iptc);
}
return $data;

0 comments on commit addb6b5

Please sign in to comment.