|
|
@ -220,9 +220,6 @@ class ImageAjaxFileManager |
|
|
|
case 'jpg': |
|
|
|
case 'jpg': |
|
|
|
$saved = $func($this->_imgFinal, $filename, $quality); |
|
|
|
$saved = $func($this->_imgFinal, $filename, $quality); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'jpeg': |
|
|
|
|
|
|
|
$saved = $func($this->_imgFinal, $filename, $quality);//hack for Chamilo fix thumbnail of jpeg files |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ($saved === false) |
|
|
|
if ($saved === false) |
|
|
@ -276,6 +273,9 @@ class ImageAjaxFileManager |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'jpg': |
|
|
|
case 'jpg': |
|
|
|
$func($this->_imgFinal, '', $quality); |
|
|
|
$func($this->_imgFinal, '', $quality); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case 'jpeg': |
|
|
|
|
|
|
|
$func($this->_imgFinal, '', $quality); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
return true; |
|
|
|
return true; |
|
|
|