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) { if($mimeType !== null) {
switch($mimeType) { switch($mimeType) {
case 'image/gif': case 'image/gif':
$this->imageType = IMAGETYPE_GIF; $imageType = IMAGETYPE_GIF;
break; break;
case 'image/jpeg': case 'image/jpeg':
case 'image/pjpeg': case 'image/pjpeg':
$this->imageType = IMAGETYPE_JPEG; $imageType = IMAGETYPE_JPEG;
break; break;
case 'image/png': case 'image/png':
$this->imageType = IMAGETYPE_PNG; $imageType = IMAGETYPE_PNG;
break; break;
case 'image/x-xbitmap': case 'image/x-xbitmap':
$this->imageType = IMAGETYPE_XBM; $imageType = IMAGETYPE_XBM;
break; break;
case 'image/bmp': case 'image/bmp':
$this->imageType = IMAGETYPE_BMP; $imageType = IMAGETYPE_BMP;
break; break;
default: default:
$this->imageType = IMAGETYPE_PNG; $imageType = IMAGETYPE_PNG;
break; break;
} }
} else { } else {