aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/site_reader_local.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/admin/site_reader_local.php b/admin/site_reader_local.php
index b5e21cd0e..3a4001d1f 100644
--- a/admin/site_reader_local.php
+++ b/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;