-
-
Notifications
You must be signed in to change notification settings - Fork 889
Closed
Labels
Description
Prerequisites
- I have written a descriptive issue title
- I have verified that I am running the latest version of ImageSharp
- I have verified if the problem exist in both
DEBUGandRELEASEmode - I have searched open and closed issues to ensure it has not already been reported
ImageSharp version
2.1.2
Other ImageSharp packages and versions
SixLabors.ImageSharp.Drawing 1.0.0-beta14; Sixlabors.Fonts 1.0.0-beta17
Environment (Operating system, version and so on)
Win10 21H2
.NET Framework version
.net 5.0.402
Description
https://mathiasbynens.be/demo/animated-webp-supported.webp
I have seen the feature support PR, but I still cannot load animated webp images. Maybe the method I used is wrong.
Steps to Reproduce
- download the example image
- load with code
Image img = Image.Load(@"1.webp");then exception throws.
Unhandled exception. SixLabors.ImageSharp.ImageFormatException: Unexpected chunk followed VP8X header
at SixLabors.ImageSharp.Formats.Webp.WebpThrowHelper.ThrowImageFormatException(String errorMessage)
at SixLabors.ImageSharp.Formats.Webp.WebpDecoderCore.ReadVp8XHeader()
at SixLabors.ImageSharp.Formats.Webp.WebpDecoderCore.ReadVp8Info()
at SixLabors.ImageSharp.Formats.Webp.WebpDecoderCore.Decode[TPixel](BufferedReadStream stream, CancellationToken cancellationToken)
at SixLabors.ImageSharp.Formats.ImageDecoderUtilities.Decode[TPixel](IImageDecoderInternals decoder, Configuration configuration, Stream stream, Func`3
largeImageExceptionFactory, CancellationToken cancellationToken)
at SixLabors.ImageSharp.Formats.ImageDecoderUtilities.Decode[TPixel](IImageDecoderInternals decoder, Configuration configuration, Stream stream, Cancell
ationToken cancellationToken)
at SixLabors.ImageSharp.Formats.Webp.WebpDecoder.Decode[TPixel](Configuration configuration, Stream stream, CancellationToken cancellationToken)
at SixLabors.ImageSharp.Formats.Webp.WebpDecoder.Decode(Configuration configuration, Stream stream, CancellationToken cancellationToken)
at SixLabors.ImageSharp.Image.Decode(Stream stream, Configuration config, CancellationToken cancellationToken)
at SixLabors.ImageSharp.Image.<>c__DisplayClass134_0.<Load>b__0(Stream s)
at SixLabors.ImageSharp.Image.WithSeekableStream[T](Configuration configuration, Stream stream, Func`2 action)
at SixLabors.ImageSharp.Image.Load(Configuration configuration, Stream stream, IImageFormat& format)
at SixLabors.ImageSharp.Image.Load(Configuration configuration, String path, IImageFormat& format)
at SixLabors.ImageSharp.Image.Load(Configuration configuration, String path)
at SixLabors.ImageSharp.Image.Load(String path)
at BilibiliMonitor.Program.Main(String[] args) in E:\编程\程序c#\BilibiliMonitor\BilibiliMonitor\Program.cs:line 19
