aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
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'];