|
|
@@ -114,7 +114,7 @@ class ImageCompressService
|
|
|
if (!extension_loaded('gd')) {
|
|
|
throw new Exception('GD扩展未安装');
|
|
|
}
|
|
|
-
|
|
|
+ outFileLog(extension_loaded('gd'),'upload_img','createImageFromType-gd');
|
|
|
try {
|
|
|
switch ($type) {
|
|
|
case IMAGETYPE_JPEG:
|
|
|
@@ -139,7 +139,7 @@ class ImageCompressService
|
|
|
if (!$image) {
|
|
|
throw new Exception('创建图片资源失败,可能是内存不足或文件损坏');
|
|
|
}
|
|
|
-
|
|
|
+ outFileLog($image,'upload_img','createImageFromType-$image');
|
|
|
return $image;
|
|
|
|
|
|
} catch (Exception $e) {
|