本文介绍了pbootcms上传缩略图片变模糊及尺寸受限的原因,解决思路:config config.php,大约在42行,将 ico 的 max_width 调整为 1920 就可以了。
下面来说说pbootcms上传缩略图片变模糊及尺寸受限的原因。
实现教程:
打开文件:config/config.php,大约在42行。如下
// 上传配置
'upload' => array(
'format' => 'jpg,jpeg,png,gif,xls,xlsx,doc,docx,ppt,pptx,rar,zip,pdf,txt,mp4,avi,flv,rmvb,mp3,otf,ttf',
'max_width' => '1920',
'max_height' => ''
),
// 缩略图配置
'ico' => array(
'max_width' => '1000',
'max_height' => '1000'
),
我们只需要调整下 max_widht 、 max_height 的数值就可以了。
例如想用缩略图做banner的朋友,就可以将 ico 的 max_width 调整为 1920 。
这样就解决这个难题了。