shish 6 lat temu
rodzic
commit
79b7bd0db5
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      common/services/ImageService.php

+ 6 - 0
common/services/ImageService.php

@@ -36,6 +36,12 @@ class ImageService
 		$width = $imgInfo[0];
 		$height = $imgInfo[1];
 		
+		if($width == 0){
+			echo $fullFileName;
+			print_r($imgInfo);
+			die;
+		}
+		
 		//生成小图 200px
 		$smallWidth = 200;
 		$smallHeight = ceil((200 * $height) / $width);