X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fimagefile.php;h=1beac97bc442ba08203cdf5955039954d5b82ad8;hb=db90e2bb65eb34d4d2ab28c4b56a1c3bdb0bddf4;hp=f5c30fefef531eccc95df4e614fef0297494e766;hpb=0e4b7148c1f730a7b14836a6ab8d592aabcddea4;p=quix0rs-gnu-social.git diff --git a/lib/imagefile.php b/lib/imagefile.php index f5c30fefef..1beac97bc4 100644 --- a/lib/imagefile.php +++ b/lib/imagefile.php @@ -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'])) {