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

For emoji, allow us to specify the size at which they'll be displayed. #3520

Open
4 tasks done
db0 opened this issue Jul 6, 2023 · 0 comments
Open
4 tasks done

For emoji, allow us to specify the size at which they'll be displayed. #3520

db0 opened this issue Jul 6, 2023 · 0 comments
Labels
area: media enhancement New feature or request

Comments

@db0
Copy link
Contributor

db0 commented Jul 6, 2023

Requirements

  • Is this a feature request? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • Did you check to see if this issue already exists?
  • Is this only a feature request? Do not put multiple feature requests in one issue.
  • Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.

Is your proposal related to a problem?

Currently the uploaded emojis are scaled down to "emoji size" when displayed in lemmy-ui, but other clients display them at full size which is unwanted.

Describe the solution you'd like.

I want to suggest to add a setting in the emojis, where the instance admin can choose the size they'll be displayed at.

pict-rs' /image/process endpoint allows the use of thumbnail={int} and resize={int} which could be used when displaying an emoji to ensure it fits the dimentions wanted by the admins automatically, without requiring the admins to resize the images manually before uploading

The display of emojis could be adjusted to take into account this setting, and retrieve from pict-rs using this processing.

Describe alternatives you've considered.

Another alternative would be to handle the resize simply via the UI, which I think is happening already in the lemmy ui and jerboa. Unfortunately most other clients don't know when an image is an emoji or a normal embed , so there should be a way to inform them that a particular markdown embed is an emoji and shouldn't be displayed at full size

Additional context

No response

@db0 db0 added the enhancement New feature or request label Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: media enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants