We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee0fd7d commit 71afa21Copy full SHA for 71afa21
1 file changed
src/Umbraco.Cms.Imaging.ImageSharp/ConfigureImageSharpMiddlewareOptions.cs
@@ -2,7 +2,6 @@
2
using Microsoft.AspNetCore.Http.Headers;
3
using Microsoft.Extensions.Options;
4
using Microsoft.Net.Http.Headers;
5
-using SixLabors.ImageSharp.Formats.Webp;
6
using SixLabors.ImageSharp.Web.Commands;
7
using SixLabors.ImageSharp.Web.Middleware;
8
using SixLabors.ImageSharp.Web.Processors;
@@ -86,12 +85,5 @@ public void Configure(ImageSharpMiddlewareOptions options)
86
85
87
return Task.CompletedTask;
88
};
89
-
90
- options.Configuration.ImageFormatsManager.SetEncoder(WebpFormat.Instance, new WebpEncoder
91
- {
92
- // Default to Lossy encoding like in ImageSharp 2.x.
93
- // ImageSharp 3.x seems to use Lossless for PNGs which creates files 10x larger than Lossy.
94
- FileFormat = WebpFileFormatType.Lossy,
95
- });
96
}
97
0 commit comments