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['focal'] = '';
$return['takestamp'] = 0; $return['takestamp'] = 0;
$return['lens'] = ''; $return['lens'] = '';
$return['tags'] = array(); $return['tags'] = '';
$return['position'] = ''; $return['position'] = '';
$return['latitude'] = ''; $return['latitude'] = '';
$return['longitude'] = ''; $return['longitude'] = '';
@ -783,7 +783,7 @@ final class Photo {
} }
// Read EXIF // 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; else $exif = false;
// EXIF Metadata // EXIF Metadata