diff --git a/backend/db/avatars.go b/backend/db/avatars.go index f28059e..a3ca1ca 100644 --- a/backend/db/avatars.go +++ b/backend/db/avatars.go @@ -21,11 +21,6 @@ import ( "github.com/chai2010/webp" ) -var ( - webpArgs = []string{"-thumbnail", "512x512^", "-gravity", "center", "-background", "none", "-extent", "512x512", "-quality", "90", "webp:-"} - jpgArgs = []string{"-thumbnail", "512x512^", "-gravity", "center", "-extent", "512x512", "-quality", "80", "jpg:-"} -) - const ErrInvalidDataURI = errors.Sentinel("invalid data URI") const ErrInvalidContentType = errors.Sentinel("invalid avatar content type")