mirror of
https://github.com/friendica/friendica
synced 2024-12-23 12:00:16 +00:00
ignore exif orientation if we can't parse the particular flavour of exif
This commit is contained in:
parent
411b6a71b4
commit
9e5fa5b9a9
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue