shish 6 年 前
コミット
f08fdc39c4
1 ファイル変更3 行追加3 行削除
  1. 3 3
      common/components/business.php

+ 3 - 3
common/components/business.php

@@ -108,9 +108,9 @@ class business
 				$imgInfo = getimagesize($preImg);
 				$width = $imgInfo[0];
 				$height = $imgInfo[1];
-				//生成小图 300px
-				$smallWidth = 300;
-				$smallHeight = ceil((300 * $height) / $width);
+				//生成小图 150px
+				$smallWidth = 150;
+				$smallHeight = ceil((150 * $height) / $width);
 				$smallFullPathFile = $imageRoot . str_replace('/uploads', '', $smallImg);
 				Image::thumbnail($preImg, $smallWidth, $smallHeight)->save($smallFullPathFile, ['quality' => 100]);
 			}