Webclient.openread image extension webp проблема
I have a problem. System.Net.WebClient webClient = new System.Net.WebClient(); Image img1 = Image.FromStream(webClient.OpenRead("https://i4.hurimg.com/i/hurriyet/75/1110x740/5b0e5ddabf49c21958da2d8a.jpg")); My code above works. Image extension jpg,png,gif Extension does not work when webp. System.Net.WebClient webClient = new System.Net.WebClient(); Image img1 = Image.FromStream(webClient.OpenRead("https://i.pinimg.com/originals/1f/aa/9d/1faa9d339378d2f1cf5307da05dd0aff.webp")); What should I do? Thank you.
Что я уже пробовал:
<pre>I have a problem. System.Net.WebClient webClient = new System.Net.WebClient(); Image img1 = Image.FromStream(webClient.OpenRead("https://i4.hurimg.com/i/hurriyet/75/1110x740/5b0e5ddabf49c21958da2d8a.jpg")); My code above works. Image extension jpg,png,gif Extension does not work when webp. System.Net.WebClient webClient = new System.Net.WebClient(); Image img1 = Image.FromStream(webClient.OpenRead("https://i.pinimg.com/originals/1f/aa/9d/1faa9d339378d2f1cf5307da05dd0aff.webp")); What should I do? Thank you.
F-ES Sitecore
Класс Image, вероятно, не знает, как обрабатывать формат webp. Google "c# webp", чтобы увидеть, если кто-то написал код, который может обрабатывать этот формат.