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

Custom SVG emojis are converted to png and they look blurry #23754

Open
ugzv opened this issue Nov 19, 2021 · 1 comment
Open

Custom SVG emojis are converted to png and they look blurry #23754

ugzv opened this issue Nov 19, 2021 · 1 comment

Comments

@ugzv
Copy link

ugzv commented Nov 19, 2021

Description:

You can upload emojis in svg, but they are converted to png and look blurry.

Tested from the electron app and native web app via Chrome.

Emojis seem to look fine in an Android app, but I didn't debug the output.

Steps to reproduce:

  1. Create a custom emoji and upload svg icon of your choice.
  2. Post this emoji to some channel.
  3. Emoji is posted, but it doesn't look sharp because it's converted to png.

Expected behavior:

  1. To be able to see sharp emoji in a native svg.

Actual behavior:

  1. Emoji is posted, but it doesn't look sharp because it's converted to png.
    30corny5D

Server Setup Information:

  • Version of Rocket.Chat Server: 4.1.1
  • Operating System: Ubuntu 18.04
  • Deployment Method: Docker image
  • Number of Running Instances: 1
  • DB Replicaset Oplog: rs0
  • NodeJS Version: 1.28.1
  • MongoDB Version: 4.0.12 / mmapv1

Client Setup Information

  • Desktop App or Browser Version: Desktop App, 3.6.6

  • Operating System: Windows 11

Additional context

  • No additional context.

Relevant logs:

No logs at that time.
@ugzv
Copy link
Author

ugzv commented Nov 19, 2021

If an SVG solution is not acceptable for security reasons, maybe convert them to a double-size .png so they can be retina ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant