Fix for bad EXIF data read errors

This commit is contained in:
Quentin Ligier 2016-04-18 10:49:31 +02:00
parent 66bf883d7f
commit 84985f73a3

View File

@ -741,7 +741,7 @@ final class Photo {
$return['focal'] = '';
$return['takestamp'] = 0;
$return['lens'] = '';
$return['tags'] = array();
$return['tags'] = '';
$return['position'] = '';
$return['latitude'] = '';
$return['longitude'] = '';
@ -783,7 +783,7 @@ final class Photo {
}
// Read EXIF
if ($info['mime']=='image/jpeg') $exif = exif_read_data($url, 'EXIF', 0);
if ($info['mime']=='image/jpeg') $exif = @exif_read_data($url, 'EXIF', false, false);
else $exif = false;
// EXIF Metadata