* fix bug for no function imagecreatefromjpeg.

This commit is contained in:
wangyidong
2016-04-08 10:31:25 +08:00
parent 98747e9d3c
commit 968627b5f3
+1 -1
View File
@@ -531,7 +531,7 @@ class fileModel extends model
*/
public function compressImage($file)
{
if(!extension_loaded('gd')) return $file;
if(!extension_loaded('gd') or !function_exists('imagecreatefromjpeg')) return $file;
$pathName = $file['pathname'];
$fileName = $this->savePath . $pathName;