|
|
@@ -27,7 +27,8 @@ class ImageCompressService
|
|
|
$width = $imageInfo[0];
|
|
|
$height = $imageInfo[1];
|
|
|
$type = $imageInfo[2];
|
|
|
-
|
|
|
+ outFileLog($width,'upload_img','$width');
|
|
|
+ outFileLog($height,'upload_img','$height');
|
|
|
// 如果图片尺寸已经很小,且质量要求不高,直接返回原文件
|
|
|
if ($width <= $maxWidth && $height <= $maxHeight && $quality >= 90) {
|
|
|
return $sourcePath;
|