Ironic considering who created the webp format, and who now owns Tenor.
Maybe they go straight for animated avif ? It’s already live on Chrome, and will be soon everywhere modern.
I added it to this post above, the file size is amazing:
How is development of that format going? How long do you think it’ll take for other companies to adopt it (including Discourse )?
Discourse can support it easily as soon as browser support happens: Can I use... Support tables for HTML5, CSS3, etc
I guess we are just waiting on Microsoft Edge then. It can be enabled in Mozilla Firefox.
Thanks to @eviltrout we now render the GIF button in a better place in mobile so this won’t happen anymore!
I’m not that familiar with theme components, is it possible to enable this on only one category?
We have a random / off topic / fun category where this would be a brilliant addition, but if I add it to all categories then all hell will let loose
You could try with css but since the composer stays open when we navigate on the forum, I’m not sure it would work 100%
It would be something like this
:not(.category-your_category_id) .d-icon-discourse-gifs-gif-icon {
display: none
}
Good idea. Added it in last version, please update!
You need to update Discourse to latest as the support for the button in the footer was just added today.
We have updated Discourse to the latest version, the button for GIFs is now missing both on desktop and mobile.
Same JS error here on meta BTW. Chrome desktop.
Yes, in addition we see strange Javascript problems after the update with variables declared in our JS code like:
xxx = 39392;
instead of
var xxx = 39392;
The former (non-strict declaration) is throwing “undefined variable” errors after the update to the latest Discourse version. We had to change all those instances in our code, to get our scripts working again.
Have there been any changes made to how JS in components is processed in Discourse?
Hello
After reboot the plugin seems to be broken. Can’t see GIF button anymore.
I have the message into the log :
Error: Could not find module discourse/helpers/gif-modal
imported from discourse/theme-5/initializers/gif-integration
Url: https://www.cmstrategies.fr/assets/ember_jquery-36a23101c869ab0dc53fc908de69adb785731593573d32bdeef416acc1076ef4.js
Please follow Some theme components do not work after upgrading Discourse, it’s an issue with several theme components (not just Gifs). We are working on a fix.