From 1814b70bafd8389bcf505d6d71f1506d055b9feb Mon Sep 17 00:00:00 2001 From: Mole Date: Fri, 9 Jul 2021 08:13:49 +0200 Subject: [PATCH] Only remove the resize processor --- .../DependencyInjection/UmbracoBuilder.ImageSharp.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.Common/DependencyInjection/UmbracoBuilder.ImageSharp.cs b/src/Umbraco.Web.Common/DependencyInjection/UmbracoBuilder.ImageSharp.cs index 775d36eaf5..688e18fd90 100644 --- a/src/Umbraco.Web.Common/DependencyInjection/UmbracoBuilder.ImageSharp.cs +++ b/src/Umbraco.Web.Common/DependencyInjection/UmbracoBuilder.ImageSharp.cs @@ -52,7 +52,7 @@ namespace Umbraco.Extensions .SetCache() .SetCacheHash() .AddProvider() - .ClearProcessors() // ImageSharp includes the processors by default, so we have to clear and re-add to control the order + .RemoveProcessor() // The Resize processor is added by default, so remove it to ensure that the crop processor runs first .AddProcessor() .AddProcessor() .AddProcessor()