-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error with a animated webp #27
Comments
Yeah, it would be nice to see the support of animated files. |
Ditto. Could really use it. |
Please, give me more details. |
With the version defined here, I've this error: Actually, with the last commited version, there is no error but there is no image displayed. |
In the new version, the DLL suport animated WebP. So the question is, what do you want that webP to become? Where do you want to present it? What container do you want to send it to? |
It does not need to handle the animation. |
As Lacro59 said, just be able to get every frame in a manner similar to the way an animated GIF is converted to an Image. In other words, I'd like an Image/Bmp that can be played using the System.Drawing.ImageAnimator.Animate(Image, EventHandler) Method. See the example in https://docs.microsoft.com/en-us/dotnet/api/system.drawing.imageanimator.animate?view=windowsdesktop-5.0 I found an example showing how to create a multi-frame Bitmap here: https://docs.microsoft.com/en-us/windows/win32/gdiplus/-gdiplus-creating-and-saving-a-multiple-frame-image-use . Rather than saving to a file, you'd probably want to save to a .MemoryStream |
I need this too. Actually I would love to be able to throw a WEBP file into this library and be returned an object with a list of images. If the webp file is not an animation then there will only be 1 image in the images collection. There could also be like an IsAnimated property. This would be awesome to have for sure. |
来信已收到,谢谢,吼吼!O(∩_∩)O~
|
FWIW, I ended up using Magick.NET to convert WebP images to PNG's (single frame) or GIF's (animated). My code looks like:
|
This works. But it takes a while to load the webp files. My browser can quickly load the same files. Maybe chrome is just optimized for webp files. Also they play at different framerates too. Thanks for posting. |
Still no support for animated webp? There doesn't seem to be any wrapper that handles them yet this one suggests being "the most complete wrapper", unfortunate. Even Google's own decoding app doesn't support animated webp lol |
来信已收到,谢谢,吼吼!O(∩_∩)O~
|
I've been using Magick.NET to convert WebP images animated GIFs for about 6 months - see my code example above. It's not super fast, but works well. |
When I try to load an animated webp, I get an error.
Will there be management of animated files?
The text was updated successfully, but these errors were encountered: