mirror of
https://github.com/friendica/friendica
synced 2024-12-23 03:20:15 +00:00
exif_read_data may not be available and isn't a requirement - check and silently ignore exif orientation if it isn't there
This commit is contained in:
parent
633726e4a9
commit
dbceef04e8
1 changed files with 3 additions and 0 deletions
|
@ -143,6 +143,9 @@ class Photo {
|
|||
public function orient($filename) {
|
||||
// based off comment on http://php.net/manual/en/function.imagerotate.php
|
||||
|
||||
if(! function_exists('exif_read_data'))
|
||||
return;
|
||||
|
||||
$exif = exif_read_data($filename);
|
||||
$ort = $exif['Orientation'];
|
||||
|
||||
|
|
Loading…
Reference in a new issue