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

Link preview should not enlarge small images #5509

Open
paulchen opened this issue Jan 23, 2024 · 1 comment
Open

Link preview should not enlarge small images #5509

paulchen opened this issue Jan 23, 2024 · 1 comment
Assignees
Labels

Comments

@paulchen
Copy link

Description:

When a user creates a message containing a link to an image, the app shows a preview of that image. The preview is resized in order for its width to match the width available for the message content. While this works fine for large images, (very) small images get enlarged by enormous factors.

Environment Information:

  • Rocket.Chat Server Version: 6.5.3
  • Rocket.Chat App Version: 4.45.0.55377
  • Device Name: ELE-L29 (Huawei P30)
  • OS Version: EMUI 12.0.0 (Android 11)

Steps to reproduce:

  1. Write a message containing a link to a very small image, e.g. https://rueckgr.at/~paulchen/avatar-small.png (24x24 px).

Expected behavior:

The image is not unnecessarily enlarged for the link preview. This is how it looks like in a desktop browser:

image

And in the mobile browser:

image

Actual behavior:

image

@preeesha
Copy link

preeesha commented Feb 9, 2024

Hey @diegolmello, should I start working on this issue?

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

No branches or pull requests

4 participants