mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-15 04:52:50 +00:00
修改压缩图片
This commit is contained in:
parent
c7276be4b0
commit
dfc7378dce
@ -77,7 +77,7 @@
|
||||
{volist name="list" id="vo"}
|
||||
<div class="image-item">
|
||||
<div class="image-delete" data-url="{:Url('delete',array('att_id'=>$vo.att_id))}"></div>
|
||||
<img class="pic" src="{$vo.att_dir|ltrim='.'}" id="{$vo.att_id}"/>
|
||||
<img class="pic" src="{$vo.satt_dir|ltrim='.'}" id="{$vo.att_id}"/>
|
||||
</div>
|
||||
{/volist}
|
||||
</div>
|
||||
|
||||
@ -157,7 +157,7 @@ class UploadService
|
||||
* @param string $pre 前缀
|
||||
* @return string 压缩图片路径
|
||||
*/
|
||||
public static function thumb($filePath, $ratio=8, $pre='s_')
|
||||
public static function thumb($filePath, $ratio=5, $pre='s_')
|
||||
{
|
||||
$filePath = ltrim($filePath,'/');
|
||||
$img = self::openImage($filePath);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user