I use the code below:
byte[] image = HttpHelper.HttpGetImage("http://xxxx/xxx.jpg", "");
Image obj = new Image(image);
var width = obj.Width;
var height = obj.Height;
but the exception will throw out while new an Image instance by using the byte[].
What' the problem? How to fix it?
@ZhiqiangTao
ImageSharp.Formats.Jpegyou need to reference one or more of the ImageSharp.Formats.XXX pacakges.
Most helpful comment
@ZhiqiangTao
ImageSharp.Formats.Jpeg