1、系统->系统基本参数->附件设置->图片浏览器文件类型
把“jpg|gif|png”改成“jpg|gif|png|webp”2、打开 include\dialog\select_images_post.php
把
$sparr = Array("image/pjpeg", "image/jpeg", "image/gif", "image/png", "image/xpng", "image/wbmp");改为:
$sparr = Array("image/pjpeg", "image/jpeg", "image/gif", "image/png", "image/xpng", "image/wbmp", "image/webp");3、打开 include\dialog\select_images.php
把
else if(preg_match("#\.(gif|png)#i", $file))改为:
else if(preg_match("#\.(gif|png|webp)#i", $file))修改后保存,就可以上传webp格式图片了。
1.7/5 - (3 票)