aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-18 20:21:54 -0700
committerfriendica <info@friendica.com>2012-06-18 20:21:54 -0700
commitdbceef04e88f9f7c3f40c1ce3b1366c300abb394 (patch)
tree1c4cab7f42b47cd9bbf991d6fd513ff7047066aa /include
parent633726e4a90c1bb931967206117e59ca6fe20bb2 (diff)
downloadvolse-hubzilla-dbceef04e88f9f7c3f40c1ce3b1366c300abb394.tar.gz
volse-hubzilla-dbceef04e88f9f7c3f40c1ce3b1366c300abb394.tar.bz2
volse-hubzilla-dbceef04e88f9f7c3f40c1ce3b1366c300abb394.zip
exif_read_data may not be available and isn't a requirement - check and silently ignore exif orientation if it isn't there
Diffstat (limited to 'include')
-rw-r--r--include/Photo.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/Photo.php b/include/Photo.php
index 54db9278e..3af1691ee 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'];