Apparently exif_read_data wasn't globally available.

This commit is contained in:
Mikael Nordfeldth 2014-05-14 10:35:05 +02:00
parent 0e4b7148c1
commit db90e2bb65
1 changed files with 1 additions and 1 deletions

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