Add support for WEBP Animated Images and Emojis
I recall hearing elsewhere that Discord's current libraries do not support animated WEBP. This is disappointing, as there's a lot of untapped potential in allowing WEBP-format emojis and images.
The GIF format is bulky and inefficient. Orthodox methods of encoding GIFs restrict one to a 256 color palette and 1-bit alpha (basically on/off transparency for every pixel, no variation). To get a reasonable file size from a gif, one must romance with frame dropping and color reduction to achieve a slim yet very ugly end result. However, WEBP images are encoded in a manner similar to YouTube videos (YouTube uses VP9 whereas WEBP is a fork of VP8). With WEBP, users won't need to sacrifice color fidelity or framerate for a tolerable product. Rather, they can simply decrease the bitrate to fill the file size maximum. WEBP also supports full alpha and RGB (even in lossy mode!).
The current upload limit is a bit of a squeeze for GIFs. WEBP compression could prove useful in overcoming that file size limit and creating beautiful high-quality animated images and emojis.
-
Completely agree. The GIF format is completely outdated, and spec-wise doesn't belong on the internet nowadays. WebP outclasses it in every way. Considering how Discord uses Opus and supports WebM, supporting WebPーa subproject of WebMーwould only make sense.
36 -
With the support of Webp by Firefox with its version 65, all major browsers support the format. In fact, it's even better than the Webm which is already integrated into Discord. So that would make sense.
17 -
Agreed. I've been using WebP for all of my screenshots & animated images, the amount of space that is being saved is pretty ridiculous.
My PNG screenshots had been cut down from 4MB to 250KB (90%-ish Smaller)
My "Optimised" Avatar GIF's had been cut down from 950KB to 264KB (70%-ish Smaller)
15 -
The only major browsers anymore that don't support WebP in 2019 are Safari, Internet Explorer, and Firefox for Android. Even with those, Safari started to experiment in 2016 (and as dumb as Apple can be, I doubt they're gonna be left behind), Internet Explorer might as well be deprecated at this point with dwindling use and Edge effectively replacing it, and FF for Android will likely support it soon. And in all honesty, if someone is using IE in 2019, that's their fault for shooting themselves in the foot, and they're likely over the age of 60 not even being aware Discord exists.
The size benefits are there, and they're huge. This isn't just a benefit to the end-user, this is a benefit to Discord's bandwidth. More available bandwidth means more money. And this would save a lot of bandwidth. Maybe not at first, but eventually the message would spread. "What, there's a way to make GIFs that don't look like a dithered picture of puke and load quickly? Hell yeah, that sounds awesome! Full color and transparency, here I come!" And once that message spreads, more people will use it. But with the way it is, nobody can use it. There is almost no reason to not implement this. Hell, I doubt it would even be a lot of work. Static WebP is already supported and displays fine. All they have to do is throw in the animation.
18 -
Please add support for .webp! Gifs just aren't scalabe.
10 -
This has to happen.
4 -
Over the last month I have been running in to every animation image being a .webp and since I cant use them on discord I have been trying to uncompress them to .gifs and they are all becoming fuzzy/static. With the number of sites that are converting to webp its time that discord did the same or be abandoned for another program that does.
7 -
just here to +1 this. Kinda weird it doesn't just work considering how discord runs on electron, which is chromium... but im no expert.
5 -
I have no idea why this ticket has so few upvotes. Full WebP support should be highest priority for Discord team who just probably use an outdated version of Electron which doesn't support animated WebP.
6 -
Please add this
4 -
This is VERY important to me as I write bots that send GIFs, and I'm often disappointed by the quality I'm limited to
4 -
I agree this should be added sometime soon. This can enable nicer-looking animated emojis and avatars. Furling .webp image links is a plus too.
3 -
Hi yes I also want to say this is something that needs to happen for all the technical reasons previously mentioned, but also because it has now been a year since it was first suggested and other platforms have adopted it as a new standard much faster than this one did. As a user who is constantly sharing content across platforms, it makes it awkward when it attempting to share that same content on Discord. I am forced to convert it to gif to make it compatible which sometimes gets complicated when trying to meet the size constraints which are also a limitation of your platform.
2 -
I agree this should be added. It's been years since the feature was removed and I'm sure the support in libraries for animated webp has gotten better
4 -
2
-
The funny thing is that electron already supports WEBM yet discord is too lazy to implement jack shit.
1 -
It's not about electron it's their media proxy. It doesn't matter where you run Discord. It's the same shit with apng such a disappointment considering the pluses they have compared to the old and shitty gif format.
0 -
I found this ticket and this answer in a Reddit thread:
"A library we use only supports static webp images, not animated ones. There was a bug that caused animated webp images to bypass our server's animated image checks, which we recently fixed. Our client is not able to pause animated webps, and even though we recently added GIF autoplay it would still affect the option to turn that off.
We may in the future support animated webps if the library we use adds support for it, but we think GIFV ("gifs" as video files) might actually be a better solution to animated images."
(https://www.reddit.com/r/discordapp/comments/7w5l1p/bring_webp_support_back/dty7dyb/)
While I think on some level it's valid to have an issue that the library one is using doesn't allow for certain things and as such support has to be axed in some way, could a solution not have been at least figured out by an alternative means, even if from scratch?
But then, fact that this reddit post is two years old either means no one has ever raised the concern, the very library they use never had anyone attempt to implement a fix for this concern, or some other deal.
But I'm also certain the library in question is WebPack, which I don't know too much about. But I'd assume anyone else with the will and knowledge could dig into this or whatever other library Discord has and both say "It's possible" along with "Here's how you'd do it"
2 -
Which one of these could if be?:
ajv
concat-map
fd-slicer
inflight
json-stringify-safe
object-keys
sshpk
asn1
core-util-is
forever-agent
inherits
jsprim
once
string.prototype.trimleft
assert-plus
dashdash
form-data
invariant
js-tokens
path-is-absolute
string.prototype.trimright
asynckit
define-properties
fs.realpath
is-callable
lodash
pend
tough-cookie
aws4
delayed-stream
function-bind
is-date-object
loose-envify
performance-now
tunnel-agent
aws-sign2
ecc-jsbn
getpass
is-regex
mime-db
promise.allsettled
tweetnacl
balanced-match
es-abstract
glob
isstream
mime-types
psl
uri-js
bcrypt-pbkdf
es-to-primitive
har-schema
is-symbol
minimatch
punycode
uuid
brace-expansion
extend
har-validator
is-typedarray
minimist
qs
verror
buffer-crc32
extsprintf
has
jsbn
mkdirp
request
wrappy
caseless
fast-deep-equal
has-symbols
json-schema
oauth-sign
rimraf
yauzl
combined-stream
fast-json-stable-stringify
http-signature
json-schema-traverse
object-inspect
safe-buffer1 -
I have no idea where you got this particular list from, but I'll take it at face value as a non-exhaustive list of node packages used by Discord
However, I'm afraid a large chunk of these are some sort of authentication deal, add some new method I think.
Honestly thinking about it, I have to wonder if things have changed with Discord and handling gifs as it stands.
Cause I know when giving a cursory look at the dev console, when gifs are unfocused, not playing, they end in an "?format=png". So I have to wonder if they just at some point stopped the method described in that reddit post from before and switched to a different method. Cause I can't exactly pause gifs like a video, only if I have discord not focused or if I disable gifs from being automatically played.
But if I still had to make any guess as to what library was being referenced in the Reddit post, it's going to either be Webpack or some other library.
Wild guess as I continue googling packages, could very well be freezeframe.js as it fits the bill in functionality:
"Freezeframe.js is a library that pauses animated .gifs and enables them to animate on mouse hover / mouse click / touch event, or manually via class methods."
https://www.npmjs.com/package/freezeframe
https://ctrl-freaks.github.io/freezeframe.js/
And it doesn't seem to note any support for webp, but I have a feeling things may have changed. I actually might have to toy with this myself.
0 -
no activity on this in months, any updates, Discord? Safari and iOS are launching with full WEBP support in September, so we really need this now, WEBP is the future!
0 -
almost 2021 and not supported yet 😢
0 -
um completely out of my element here... but does anyone know how to turn an animated gif into a webp file? I tried ezgif.com; tried to make it 512 but it doesn't save.... would be such a massive help if anyone knows...
0 -
for me ezgif.com works fine
here the gif converted to webP 512x512
https://im7.ezgif.com/tmp/ezgif-7-36048ee40f59.webp0 -
iTACHi That's not an animated WebP
Here's an animated one https://anonfiles.com/PcI7p7b4p0/fish_webp
0 -
melankaya use ffmpeg
ffmpeg -i input.mp4 -loop 0 output.webp
1 -
+1 for this. Don't know why Discord has been completely silent about webp support for over a year.
0 -
Please implement this (or APNG support). Discord is now the only reason why I still have to have a "record GIF" hotkey configured in ShareX, instead of being able to use my APNG/WebP ones.
0 -
Gifs are sooooooo outdated. I recently tried to use .webp because is the preview format in YouTube so I thought Discord will support it. But it doesn't support animated ones! Please, make it possible!
3 -
Voicing my support for WebM for server/profile icons. Using Gifs just looks horrible. As a new Nitro Subscriber, I have to say I'm disappointed with the maximum quality allowed. Please support WebP/WebM sometime soon.
1
댓글을 남기려면 로그인하세요.
댓글
댓글 81개