Skip to content
Back

Avatars API returning invalid img src

  • 0
  • Web
  • Avatars
  • Cloud
ItsMeAlfie0
12 Jan, 2025, 19:28

I could just be using it wrong because the documentation isnt the best but setting the img src as the result from avatars.getInitials() leaves me with an image that wont render.

TL;DR
Developers found a simpler solution for Avatars API by setting the image source as `https://cloud.appwrite.io/v1/avatars/initials?name={FIRSTNAME LASTNAME}&width=80&height=80`. The issue may be related to incorrect usage of `avatars.getInitials()`.
Kenny
12 Jan, 2025, 19:44

can you provide your code?

Kenny
12 Jan, 2025, 19:45

You could also just set the image source to this

https://cloud.appwrite.io/v1/avatars/initials?name={FIRSTNAME LASTNAME}&width=80&height=80

ItsMeAlfie0
12 Jan, 2025, 19:46

oh damn that's so much easier than dealing with byte arrays imma just do that ty

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more