当用户访问.png .jpg .gif文件时,根据客户浏览器对webp格式的支持程度,自动压缩为webp图片,响应给用户, 不支持webp的用户,将以传统图片压缩方式压缩图片,响应给用户.
Info
Version: | 1.0.0.6 |
Author(s): | Jack |
Last Update: | Friday, August 23, 2019 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/ImageToWebp |
Install
Install-Package ImageToWebp
dotnet add package ImageToWebp
paket add ImageToWebp
ImageToWebp Download (Unzip the "nupkg" after downloading)
Dependencies
- Microsoft.AspNetCore(>= 2.0.0)
- System.Drawing.Common(>= 4.5.1)
- WebPWrapper(>= 1.0.2)