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'])) {