brendan-duncan / image

Dart Image Library for opening, manipulating, and saving various different image file formats.
MIT License
1.14k stars 254 forks source link

webp encoding #6

Open brendan-duncan opened 10 years ago

gmosx commented 10 years ago

That would be useful.

brendan-duncan commented 10 years ago

I'll start on that soon

inceptusp commented 4 years ago

Any update on this?

brendan-duncan commented 4 years ago

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.

droplet-js commented 2 years ago

Any news update?

KishorJena commented 2 years ago

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 commented 8 months ago

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

Jeanno commented 8 months ago

@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?

brendan-duncan commented 8 months ago

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

Jeanno commented 8 months ago

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

brendan-duncan commented 8 months ago

If it were me, weeks.

phaylali commented 8 months ago

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

Jeanno commented 8 months ago

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.

brendan-duncan commented 8 months ago

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.

HudsonAfonso commented 3 weeks ago

dead?

brendan-duncan commented 2 weeks ago

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.