Skip to content

Custom Emojis are cropped instead of scaled. #9643

@jselleck

Description

@jselleck

Description:

When adding custom emojis of varying widths/heights the image is cropped in the message pain as well as selection.

Server Setup Information:

  • Version of Rocket.Chat Server: 0.60.4
  • Operating System: Windows 10
  • Deployment Method(snap/docker/tar/etc): docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • Node Version:

Steps to Reproduce:

  1. Add Custom Emoji. - I.E. try with this image: https://www.google.com/search?q=meme&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjVzuaG69zWAhXk4IMKHTg5DRsQ_AUICigB&biw=1050&bih=643#imgrc=j_PXxZSMSZSELM:
  2. Try to use in chat.
  3. Notice top and bottom are cropped.

Expected behavior:

The image should be scaled but should maintain aspect ratio. The entire image should be seen.

Actual behavior:

The image is cropped.

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions