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 ( var (
webpArgs = []string{"-quality", "50", "webp:-"} webpArgs = []string{"-resize", "256x256", "-quality", "50", "webp:-"}
jpgArgs = []string{"-quality", "50", "jpg:-"} jpgArgs = []string{"-resize", "256x256", "-quality", "50", "jpg:-"}
) )
const ErrInvalidDataURI = errors.Sentinel("invalid data URI") const ErrInvalidDataURI = errors.Sentinel("invalid data URI")