Apparently exif_read_data wasn't globally available.
This commit is contained in:
parent
0e4b7148c1
commit
db90e2bb65
|
@ -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'])) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user