• 0
  • 0

检查图片是否损坏

2020-04-29 27 0 admin 所属分类:PHP 记录
list($width, $height, $type) = getimagesize($file);
if ($width <= 1 || $height <= 1 || $type < 1) {
   echo "坏图";
}


返回顶部