![]() At some point the PNG and GIF images that 7TV now provides can serve as a fallback when WebP decoding through the native libraries is not available (e.g. ![]() I could have forked/contributed to one of course, but as I said, none of them really seemed to fit my use case in the first place.Ĭurrently I'm using the 7TV v2 API, since v3 wasn't documented yet. I wanted to make sure that I could maintain it myself anyway, since some projects seemed a bit outdated. Other native code based Java WebP libraries already existed, but none of them seemed to be able to decode animated WebP images, so I had to make my own. At least that has the advantage that a sort of "official" library like libwebp is probably fairly well maintained. I also needed to figure out how to do that first though, since I also had never used JNA in that way before (it's already used in Chatty for global hotkeys, but that works a bit differently). That is why I now went with the other option: Native libraries based on Google's libwebp library, with the downside of needing to be compiled for every platform and some other jankyness compared to a pure Java library. I'm sure with enough time and skill it would be possible, but gaining the skill also takes time if you've never done anything with image decoding. I also didn't get anywhere trying to finished it myself. The problem with that is that even if I or some other people would sponsor them with some amount of money, there is no way to know when it would actually be finished or what quality it would have (and that feature would be the only reason for me to use that library in the first place). If anything, the money in this case would have to go to the developer of the unfinished library. The problem (as everyone reading this thread would know) was the WebP decoder, which unfortunately is a lot of work to write from scratch in Java. The implementation in Chatty isn't even that difficult, making a few API requests, some other small changes. What was in it for them to develop it in the first place? To make a GIGACHAD chat client for everyone. What is in it for the developer to add the feature, then? Is anybody compensating the developer for their time to add that feature? Probably not. Features aren't going to get added just because you or even a crowd wants them. This is the nature of free, open-source software. Great update! We're at a point where 7TV usage has overtaken all other emote plugins in many popular channels. ![]() ![]() The v3 of 7tv was supposed to add support for alternate image formats like GIF, but that seems to be taking longer than expected as well. I haven't been making enough progress understanding the specification to try and implement anything, so if anyone would like to contribute to that feel free. There is a promising one in pure Java, which I would prefer since it would just run everywhere immediately, but it's not finished. I may be able to compile my own native libraries at some point, but I haven't been able to figure it out yet, I had only gotten it to work partially (no animations). This could be an ok compromise, but them being not maintained is a problem especially when running native code. dll) which needs to be compiled per platform, so it may not work everywhere. Most of them also use JNA (calling a native library like a. The ones that I found either only support some types of WebP images or are quite outdated and not maintained anymore. The issue still remains that there is no WebP library for Java that meets the requirements.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |