You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using(varimgStream=newMemoryStream()){awaitRequest.Body.CopyToAsync(imgStream);if(imgStream==null||imgStream.Length==0){returnFail("image can not be null");}varbuffer=newbyte[imgStream.Length];imgStream.Position=0;awaitimgStream.ReadAsync(buffer,0,buffer.Length);//using(Image img=Image.Load(file)) //At first i wrote this line which turned out img.Frames.Count=1using(Imageimg=Image.Load(newDecoderOptions{MaxFrames=100},file))//this way turned out img.Frames.Count=12{varfilePath=AppContext.BaseDirectory+Guid.NewGuid().ToString()+".webp";awaitimg.SaveAsync(filePath);}}
Prerequisites
DEBUG
andRELEASE
modeImageSharp version
3.0.1
Other ImageSharp packages and versions
SixLabors.ImageSharp.Drawing(1.0.0)
Environment (Operating system, version and so on)
Win10 22H2
.NET Framework version
.NET 6
Description
mathiasbynens.be/demo/animated-webp-supported.webp cannot load animated webp images or save one correctly. Maybe the method I used is wrong.
Really appreciate for your work~
Steps to Reproduce
1.download the example image
2.load with code
Images
68747470733a2f2f6d61746869617362796e656e732e62652f64656d6f2f616e696d617465642d776562702d737570706f727465642e77656270.zip
The text was updated successfully, but these errors were encountered: