|
@@ -19,6 +19,7 @@ class ImageCompressService
|
|
|
try {
|
|
try {
|
|
|
// 获取图片信息
|
|
// 获取图片信息
|
|
|
$imageInfo = getimagesize($sourcePath);
|
|
$imageInfo = getimagesize($sourcePath);
|
|
|
|
|
+ outFileLog($imageInfo,'upload_img','imgInfo');
|
|
|
if (!$imageInfo) {
|
|
if (!$imageInfo) {
|
|
|
throw new Exception('无法获取图片信息');
|
|
throw new Exception('无法获取图片信息');
|
|
|
}
|
|
}
|