]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/imagefile.php
Apparently exif_read_data wasn't globally available.
[quix0rs-gnu-social.git] / lib / imagefile.php
index f5c30fefef531eccc95df4e614fef0297494e766..1beac97bc442ba08203cdf5955039954d5b82ad8 100644 (file)
@@ -76,7 +76,7 @@ class ImageFile
         $this->width = ($info) ? $info[0]:$width;
         $this->height = ($info) ? $info[1]:$height;
 
-        if ($this->type == IMAGETYPE_JPEG) {
+        if ($this->type == IMAGETYPE_JPEG && function_exists('exif_read_data')) {
             // Orientation value to rotate thumbnails properly
             $exif = exif_read_data($this->filepath);
             if (is_array($exif) && isset($exif['Orientation'])) {