Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: Avatars Initials API Returns Empty Image #8042

Open
2 tasks done
ItzNotABug opened this issue Apr 29, 2024 · 2 comments
Open
2 tasks done

🐛 Bug Report: Avatars Initials API Returns Empty Image #8042

ItzNotABug opened this issue Apr 29, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ItzNotABug
Copy link
Contributor

👟 Reproduction steps

  1. https://cloud.appwrite.io/v1/avatars/initials?name=ItzNotABug > the image will be rendered
  2. https://cloud.appwrite.io/v1/avatars/initials?name=@ItzNotABug > returns only a square with solid color

Possible solutions could be -

  1. Process the character & return an image
  2. Either return an Error specifying the unacceptable character

👍 Expected behavior

Return image with the first character or API error.

👎 Actual Behavior

Blank solid square image.

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

MacOS

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@ItzNotABug ItzNotABug added the bug Something isn't working label Apr 29, 2024
@EVDOG4LIFE
Copy link
Contributor

https://github.com/appwrite/appwrite/blob/main/app/controllers/api/avatars.php#L553-L554

Current fontset only supports latin characters, so anything outside of what we have in the font file will be ignored and not rendered.

Font is here - https://github.com/appwrite/appwrite/blob/main/app/assets/fonts/inter-v8-latin-regular.woff2

While its likely intended to not support special characters, we will want to do something to accommodate a more standard utf-8 set to allow Hebrew or Cyrilic characters

@EVDOG4LIFE EVDOG4LIFE self-assigned this May 3, 2024
@Yashc885
Copy link

Yashc885 commented Jun 3, 2024

may i work on this
?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants