Browse Source

更新方法

master v0.2.6
listen 3 years ago
parent
commit
fb5a0d87c4
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      string.go

+ 10
- 0
string.go View File

@ -295,3 +295,13 @@ func TrimHtml(src string) string {
src = re.ReplaceAllString(src, "\n")
return strings.TrimSpace(src)
}
/**
* 腾讯云图片压缩
* @2021/11/19
* @linsen
*/
func TencentCloudImageCompress(imgUrl,ratio string)string{
return imgUrl + "?imageMogr2/thumbnail/"+ ratio +"x/interlace/1"
}

Loading…
Cancel
Save