Skip to content

Commit

Permalink
Add Arabic Support to Avatar Generator
Browse files Browse the repository at this point in the history
  • Loading branch information
BasselArt committed Dec 29, 2024
1 parent 24479c8 commit 8e96e60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/handlers/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ func LetterAvatar() web.HandlerFunc {
size = between(size, 50, 200)

extractedLetter := letteravatar.Extract(decodedName)
log.Debugf(c, "Generating letter avatar for name '%s', extracted letter: '%s'", decodedName, extractedLetter)
log.Debugf(c, "Generating letter avatar. Name: @{Name}, Letter: @{Letter}", dto.Props{
"Name": decodedName,
"Letter": extractedLetter,
})

img, err := letteravatar.Draw(size, extractedLetter, &letteravatar.Options{
PaletteKey: fmt.Sprintf("%s:%s", id, decodedName),
Expand Down

0 comments on commit 8e96e60

Please sign in to comment.