Open brendan-duncan opened 10 years ago
I'll start on that soon
Any update on this?
No, sorry, I won't be able to get to this. I just don't have the time to work on big tasks for this library.
Any news update?
in case someone looking for library to add animated webp encoding decoding, the libvips is there https://github.com/libvips/libvips I am learning about NDK to add libvip to my android app. So I could not add this lib. But if someone can do it then please do asap. This library can do the neccesory operations as I have tried with SharpJs of Node and I was able to manipulate the animated webp files quickly.
for displaying the Animated webp and animated png we can use APNG4Android with glide. But to extract frames by decoding and encode them after processing each frames, I have written my own encoder decoder in java. So if anybody need this then I can share the source code here. Its not possible for me right now to make PR due to schedules
@brendan-duncan I might be able to volunteer myself to work on this if you can give me a bit of an overview. Looks like the WebP part doesn't FFI to libwebp and are purely written in dart. Am I correct? Did you reference to libwebp when you write the decoder?
@Jeanno, you're correct it doesn't use FFI, nothing in the library currently does because it was designed to be compatible with the web, and I wrote it before FFI existed. I don't want to add anything to the library that will not be fully cross platform.
I did reference libwebp, basically porting it more-or-less directly to Dart. There was a lot of stepping through code with a debugger both from a C program calling libwebp and a Dart program, reading the same image, to make sure it was reading the same bytes and doing the same things with them in both languages. I had a lot more time back then :-)
I see. One last question before I commit to this - do you think this will take days or weeks?
If it were me, weeks.
is there no hope for webp encoding? webp is getting increasingly more important and wide spread, the lack of webp makes flutter seem less reliable than other frameworks
is there no hope for webp encoding? webp is getting increasingly more important and wide spread, the lack of webp makes flutter seem less reliable than other frameworks
This is not an official flutter project as far as I know.
This library most definitely is not an official flutter project. I've never even written a Flutter app. But I appreciate it and try to help when I can.
I don't know anything about it, but this library seems to claim it can encode WebP images for Flutter, https://pub.dev/packages/flutter_image_compress_web.
dead?
It's not dead, but I have too much work (and family) and too little time. It's been 10 years since I wrote the decoder. One day I may finally get around to the encoder, but don't do any project planning around it.
Hi there, we'd also love to see webp-encoding if possible.
@brendan-duncan is it possible to delegate this work or open it up for contributions?
Best regards
It's always open for contributions. I don't have time to work on it myself.
That would be useful.