fix: crop avatars to square
This commit is contained in:
parent
b2bc608ec8
commit
fe0680d587
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
webpArgs = []string{"-resize", "512x512", "-quality", "80", "webp:-"}
|
||||
jpgArgs = []string{"-resize", "512x512", "-quality", "80", "jpg:-"}
|
||||
webpArgs = []string{"-thumbnail", "512x512^", "-gravity", "center", "-extent", "512x512", "-quality", "90", "webp:-"}
|
||||
jpgArgs = []string{"-thumbnail", "512x512^", "-gravity", "center", "-extent", "512x512", "-quality", "80", "jpg:-"}
|
||||
)
|
||||
|
||||
const ErrInvalidDataURI = errors.Sentinel("invalid data URI")
|
||||
|
|
Loading…
Reference in a new issue