Square Emoji site setting does not work as expected

AI-generated summary

A discussion was started by gkln to clarify the purpose of the “enforce square emoji” setting, which was found to not be working as expected. The setting was supposed to prevent uploaded non-square emojis from being resized to squares, but it didn’t achieve this. cpradio explained that the setting was meant to prevent squaring at upload, but a custom CSS rule was needed to override the existing one. sam questioned the usefulness of the setting, and zogstrip revealed that it was introduced for users migrating from other forum engines. The setting has since been removed, as confirmed by nbianca who shared a link to the relevant GitHub pull request.

Hi,

Our goal is to upload non squared Emoji (more like tiny reaction gifs) so we disabled the enforce square emoji setting. The images are not resized on upload but are still squares when including them in posts because of the CSS rule. Is that the expected behaviour?

When the setting is enabled, the behaviour is exactly the same: the image is not resized on upload but with the CSS.

So, what is the purpose of this setting?

Thanks!

To not square them at upload. To fix the CSS you will need to apply your own CSS rule overriding the existing one in the Admin > Customize section.

3 curtidas

This is one oddball setting. I am on the fence on even keeping it cause it requires a fair amount of hacking to “make it work” for your definition of work.

@zogstrip thoughts?

2 curtidas

I remember doing that setting for people migrating from other forum engine with weird “gifs” used as emojis.

64

But it seems it broke and only @gkln noticed. So I guess it’s fine to :fire: it and only use CSS to force a square ratio on the custom emojis.

5 curtidas

This site setting did not have any effect and was removed.

https://github.com/discourse/discourse/pull/6398

5 curtidas