image icon indicating copy to clipboard operation
image copied to clipboard

webp encoding

Open brendan-duncan opened this issue 11 years ago • 18 comments
trafficstars

brendan-duncan avatar Jan 31 '14 07:01 brendan-duncan

That would be useful.

gmosx avatar Apr 03 '14 19:04 gmosx

I'll start on that soon

brendan-duncan avatar Apr 03 '14 19:04 brendan-duncan

Any update on this?

inceptusp avatar Mar 11 '20 23:03 inceptusp

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.

brendan-duncan avatar Mar 17 '20 21:03 brendan-duncan

Any news update?

droplet-js avatar Jan 11 '22 12:01 droplet-js

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.

KishorJena avatar Feb 25 '22 19:02 KishorJena

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

KishorJena avatar Oct 12 '23 14:10 KishorJena

@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 avatar Oct 16 '23 23:10 Jeanno

@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 :-)

brendan-duncan avatar Oct 17 '23 02:10 brendan-duncan

I see. One last question before I commit to this - do you think this will take days or weeks?

Jeanno avatar Oct 17 '23 05:10 Jeanno

If it were me, weeks.

brendan-duncan avatar Oct 18 '23 02:10 brendan-duncan

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

phaylali avatar Nov 06 '23 14:11 phaylali

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.

Jeanno avatar Nov 07 '23 02:11 Jeanno

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.

brendan-duncan avatar Nov 07 '23 03:11 brendan-duncan

dead?

HudsonAfonso avatar Jun 16 '24 16:06 HudsonAfonso

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.

brendan-duncan avatar Jun 16 '24 21:06 brendan-duncan