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