lemmy
lemmy copied to clipboard
For emoji, allow us to specify the size at which they'll be displayed.
Requirements
- [X] Is this a feature request? For questions or discussions use https://lemmy.ml/c/lemmy_support
- [X] Did you check to see if this issue already exists?
- [X] Is this only a feature request? Do not put multiple feature requests in one issue.
- [X] 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