forked from mirrors/pronouns.cc
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 (
|
var (
|
||||||
webpArgs = []string{"-resize", "512x512", "-quality", "80", "webp:-"}
|
webpArgs = []string{"-thumbnail", "512x512^", "-gravity", "center", "-extent", "512x512", "-quality", "90", "webp:-"}
|
||||||
jpgArgs = []string{"-resize", "512x512", "-quality", "80", "jpg:-"}
|
jpgArgs = []string{"-thumbnail", "512x512^", "-gravity", "center", "-extent", "512x512", "-quality", "80", "jpg:-"}
|
||||||
)
|
)
|
||||||
|
|
||||||
const ErrInvalidDataURI = errors.Sentinel("invalid data URI")
|
const ErrInvalidDataURI = errors.Sentinel("invalid data URI")
|
||||||
|
|
Loading…
Reference in a new issue