Browse Source

Slight increase of 13% of profile background quality

tags/v1.4.0
Morgan Bazalgette 2 years ago
parent
commit
41062fbeda
Signed by: Morgan Bazalgette <the@howl.moe> GPG Key ID: 40D328300D245DA5
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      profbackground.go

+ 3
- 1
profbackground.go View File

@@ -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…
Cancel
Save