fix: crop avatars to square

This commit is contained in:
Sam 2023-03-18 22:51:54 +01:00
parent b2bc608ec8
commit fe0680d587
Signed by: sam
GPG key ID: B4EF20DDE721CAA1

View file

@ -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")