wrong type returned for gif

pull/211/head
brendan braybrook 10 years ago
parent e9ecd49f74
commit c6183b649a

@ -189,7 +189,7 @@ class rcube_image
}
else if($props['gd_type'] == IMAGETYPE_GIF && function_exists('imagecreatefromgif')) {
$image = imagecreatefromgif($this->image_file);
$type = 'gid';
$type = 'gif';
}
else if($props['gd_type'] == IMAGETYPE_PNG && function_exists('imagecreatefrompng')) {
$image = imagecreatefrompng($this->image_file);

Loading…
Cancel
Save