Skip to content

Commit a649287

Browse files
Jeavonbergmania
authored andcommitted
Remove all ImageSharp.Web Processors and the re-add in the correct order
1 parent 53df7c6 commit a649287

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Umbraco.Web.Common/DependencyInjection/UmbracoBuilder.ImageSharp.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,14 @@ public static IServiceCollection AddUmbracoImageSharp(this IUmbracoBuilder build
5454
.Configure<PhysicalFileSystemCacheOptions>(options => options.CacheFolder = builder.BuilderHostingEnvironment.MapPathContentRoot(imagingSettings.Cache.CacheFolder))
5555
// We need to add CropWebProcessor before ResizeWebProcessor (until https://github.com/SixLabors/ImageSharp.Web/issues/182 is fixed)
5656
.RemoveProcessor<ResizeWebProcessor>()
57+
.RemoveProcessor<FormatWebProcessor>()
58+
.RemoveProcessor<BackgroundColorWebProcessor>()
59+
.RemoveProcessor<JpegQualityWebProcessor>()
5760
.AddProcessor<CropWebProcessor>()
58-
.AddProcessor<ResizeWebProcessor>();
61+
.AddProcessor<ResizeWebProcessor>()
62+
.AddProcessor<FormatWebProcessor>()
63+
.AddProcessor<BackgroundColorWebProcessor>()
64+
.AddProcessor<JpegQualityWebProcessor>();
5965

6066
builder.Services.AddTransient<IConfigureOptions<ImageSharpMiddlewareOptions>, ImageSharpConfigurationOptions>();
6167

0 commit comments

Comments
 (0)