feature 620: if no exif/iptc found in the "web resized" photo, then we search
into the high definition picture if available. Thanks to Jochen Roth (Polly) for the patch. git-svn-id: http://piwigo.org/svn/branches/2.0@4682 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
a6780831fe
commit
ee9232b650
1 changed files with 8 additions and 0 deletions
|
@ -141,12 +141,20 @@ SELECT id
|
|||
if ($conf['use_exif'])
|
||||
{
|
||||
$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'])
|
||||
{
|
||||
$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);
|
||||
|
||||
if (count($iptc) > 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue