riolubruh / YABDP4Nitro

Yet Another BetterDiscord Plugin for Nitro features. Unlock screensharing modes, use cross-server and gif emotes and much more!
Other
778 stars 141 forks source link

Emoji size selection dropdown + fixes #175

Closed Weblure closed 9 months ago

Weblure commented 9 months ago

Replaces #176

Changed the emoji size selection from textbox to a dropdown. Trimmed anything below Discord's max emoji size (128px) and added a few more options in the low range.

image

Reason

The old textbox code I wrote was janky and a few values were invalid. Additionally, while the Discord CDN will return an emoji image for requested sizes above 128px, all emojis are reduced to a maximum of 128x128 when uploaded to Discord (I confirmed this by uploading a very compressed 1024px image; ?size=1024 still returned a 128x128px image in both Discord and directly in the browser). This made it reasonable to simply use a dropdown, as there are no longer dozens of potential values to choose from.

EDIT: Looks like GIFs can go up to 256px, so I added that as an option as well.

riolubruh commented 9 months ago

Very good work as always, Weblure :D! Thanks for contributing!