From: friendica Date: Tue, 19 Jun 2012 03:21:54 +0000 (-0700) Subject: exif_read_data may not be available and isn't a requirement - check and silently... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dbceef04e88f9f7c3f40c1ce3b1366c300abb394;p=friendica.git exif_read_data may not be available and isn't a requirement - check and silently ignore exif orientation if it isn't there --- diff --git a/include/Photo.php b/include/Photo.php index 54db9278e4..3af1691ee7 100644 --- a/include/Photo.php +++ b/include/Photo.php @@ -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'];