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鈥檒l 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 · 1 comment
Open
2 tasks done

馃悰 Bug Report: Avatars Initials API Returns Empty Image #8042

ItzNotABug opened this issue Apr 29, 2024 · 1 comment
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
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

2 participants