🐛 fix txt2img

This commit is contained in:
fumiama
2022-01-13 20:30:26 +08:00
parent 107979c459
commit 30f6b57941
8 changed files with 22 additions and 34 deletions

View File

@@ -52,7 +52,7 @@ func handle(ctx *zero.Ctx) {
// TODO: 可注入
switch ctx.State["id"].(int64) {
case 587874, 162207:
data, err := txt2img.RenderToBase64(text, 40, 20)
data, err := txt2img.RenderToBase64(text, txt2img.FontFile, 400, 20)
if err != nil {
log.Errorln("[shindan]:", err)
}