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') )
|
if( (! function_exists('exif_read_data')) || ($this->getType() !== 'image/jpeg') )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$exif = exif_read_data($filename);
|
$exif = @exif_read_data($filename);
|
||||||
|
|
||||||
|
if(! $exif)
|
||||||
|
return;
|
||||||
|
|
||||||
$ort = $exif['Orientation'];
|
$ort = $exif['Orientation'];
|
||||||
|
|
||||||
switch($ort)
|
switch($ort)
|
||||||
|
|
Loading…
Reference in a new issue