Changeset 6076


Ignore:
Timestamp:
May 5, 2010, 1:45:20 AM (14 years ago)
Author:
plg
Message:

feature 620: ability to synchronize metadata from high definition photo, 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/site_reader_local.php

    r5196 r6076  
    206206  if ($conf['use_exif'])
    207207  {
    208     $data = array_merge($data, get_sync_exif_data($file) );
     208    $exif = get_sync_exif_data($file);
     209    if (count($exif) == 0 and isset($data['high_filesize']))
     210    {
     211      $exif = get_sync_exif_data($high_file);
     212    }
     213    $data = array_merge($data, $exif);
    209214  }
    210215
    211216  if ($conf['use_iptc'])
    212217  {
    213     $data = array_merge($data, get_sync_iptc_data($file) );
     218    $iptc = get_sync_iptc_data($file);
     219    if (count($iptc) == 0 and isset($data['high_filesize']))
     220    {
     221      $iptc = get_sync_iptc_data($high_file);
     222    }
     223    $data = array_merge($data, $iptc);
    214224  }
    215225
Note: See TracChangeset for help on using the changeset viewer.