瀏覽代碼

Slight increase of 13% of profile background quality

tags/v1.4.0
Morgan Bazalgette 3 年之前
父節點
當前提交
41062fbeda
Signed by untrusted user: howl <the@howl.moe> GPG 金鑰 ID: 40D328300D245DA5
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      profbackground.go

+ 3
- 1
profbackground.go 查看文件

@@ -55,7 +55,9 @@ func profBackground(c *gin.Context) {
c.Error(err)
return
}
err = jpeg.Encode(f, img, nil)
err = jpeg.Encode(f, img, &jpeg.Options{
Quality: 88,
})
if err != nil {
m = errorMessage{T(c, "We were not able to save your profile background.")}
c.Error(err)


Loading…
取消
儲存