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
1 changed files with 2 additions and 2 deletions

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