don't change mimetype of whole image object
This commit is contained in:
parent
0c3c75efd5
commit
c140010e81
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue