chore: reduce memory usage

This commit is contained in:
2024-09-15 22:17:00 +08:00
parent 4512fdb107
commit e32020e70b
4 files changed
+17 -9

No files matched your search

@@ -61,6 +61,7 @@ class GithubUserCommand : BaseCommand() {
}
g2d.drawString("114514/1919810", 40, 560)
g2d.drawCustomImage(userAvatar, 40, canvasHeight / 2 - 250, 170.0, 170.0, true)
g2d.dispose()
return canvas.toByteArray().encodeToBase64()
}