ignore exif orientation if we can't parse the particular flavour of exif

This commit is contained in:
friendica 2012-09-05 04:02:30 -07:00
parent 411b6a71b4
commit 9e5fa5b9a9

View File

@ -295,7 +295,11 @@ class Photo {
if( (! function_exists('exif_read_data')) || ($this->getType() !== 'image/jpeg') )
return;
$exif = exif_read_data($filename);
$exif = @exif_read_data($filename);
if(! $exif)
return;
$ort = $exif['Orientation'];
switch($ort)