fix(backend): actually resize avatars on upload

This commit is contained in:
Sam 2022-11-20 01:54:47 +01:00
parent 0c4f97b3cc
commit 552505fa53

View file

@ -14,8 +14,8 @@ import (
)
var (
webpArgs = []string{"-quality", "50", "webp:-"}
jpgArgs = []string{"-quality", "50", "jpg:-"}
webpArgs = []string{"-resize", "256x256", "-quality", "50", "webp:-"}
jpgArgs = []string{"-resize", "256x256", "-quality", "50", "jpg:-"}
)
const ErrInvalidDataURI = errors.Sentinel("invalid data URI")