moonsflyer 4 miesięcy temu
rodzic
commit
97aac5be23
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      app/common/service/ImageCompressService.php

+ 2 - 1
app/common/service/ImageCompressService.php

@@ -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;