ignore exif orientation if we can't parse the particular flavour of exif
This commit is contained in:
parent
411b6a71b4
commit
9e5fa5b9a9
|
@ -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