pbootcms模板上传栏目缩略图的时候,图片尺寸宽度是1920,但保存后发现图片自动变成了1000的宽度
解决方法:打开文件:config/config.php,大约在42行。如下
01// 上传配置 02 'upload' => array( 03 'format' => 'jpg,jpeg,png,gif,xls,xlsx,doc,docx,ppt,pptx,rar,zip,pdf,txt,mp4,avi,flv,rmvb,mp3,otf,ttf', 04 'max_width' => '1920', 05 'max_height' => '' 06 ), 07 08 // 缩略图配置 09 'ico' => array( 10 'max_width' => '1000', 11 'max_height' => '1000' 12 ), |
将上面的1000改成1920即可。
max_height是指图片的高度,如果你的图片高度超过这个尺寸,自己修改最大尺寸即可。