don't change mimetype of whole image object

This commit is contained in:
Georg Ehrke 2014-03-14 11:17:20 +01:00
parent 0c3c75efd5
commit c140010e81
1 changed files with 6 additions and 6 deletions

View File

@ -202,23 +202,23 @@ class OC_Image {
if($mimeType !== null) {
switch($mimeType) {
case 'image/gif':
$this->imageType = IMAGETYPE_GIF;
$imageType = IMAGETYPE_GIF;
break;
case 'image/jpeg':
case 'image/pjpeg':
$this->imageType = IMAGETYPE_JPEG;
$imageType = IMAGETYPE_JPEG;
break;
case 'image/png':
$this->imageType = IMAGETYPE_PNG;
$imageType = IMAGETYPE_PNG;
break;
case 'image/x-xbitmap':
$this->imageType = IMAGETYPE_XBM;
$imageType = IMAGETYPE_XBM;
break;
case 'image/bmp':
$this->imageType = IMAGETYPE_BMP;
$imageType = IMAGETYPE_BMP;
break;
default:
$this->imageType = IMAGETYPE_PNG;
$imageType = IMAGETYPE_PNG;
break;
}
} else {