File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public static IServiceCollection AddUmbracoImageSharp(this IUmbracoBuilder build
27
27
28
28
builder . Services . AddImageSharp ( options =>
29
29
{
30
- // The configuration is set using ImageSharpConfigurationOptions
30
+ // options.Configuration is set using ImageSharpConfigurationOptions below
31
31
options . BrowserMaxAge = imagingSettings . Cache . BrowserMaxAge ;
32
32
options . CacheMaxAge = imagingSettings . Cache . CacheMaxAge ;
33
33
options . CachedNameLength = imagingSettings . Cache . CachedNameLength ;
@@ -52,16 +52,7 @@ public static IServiceCollection AddUmbracoImageSharp(this IUmbracoBuilder build
52
52
} ;
53
53
} )
54
54
. Configure < PhysicalFileSystemCacheOptions > ( options => options . CacheFolder = builder . BuilderHostingEnvironment . MapPathContentRoot ( imagingSettings . Cache . CacheFolder ) )
55
- // We need to add CropWebProcessor before ResizeWebProcessor (until https://github.com/SixLabors/ImageSharp.Web/issues/182 is fixed)
56
- . RemoveProcessor < ResizeWebProcessor > ( )
57
- . RemoveProcessor < FormatWebProcessor > ( )
58
- . RemoveProcessor < BackgroundColorWebProcessor > ( )
59
- . RemoveProcessor < JpegQualityWebProcessor > ( )
60
- . AddProcessor < CropWebProcessor > ( )
61
- . AddProcessor < ResizeWebProcessor > ( )
62
- . AddProcessor < FormatWebProcessor > ( )
63
- . AddProcessor < BackgroundColorWebProcessor > ( )
64
- . AddProcessor < JpegQualityWebProcessor > ( ) ;
55
+ . AddProcessor < CropWebProcessor > ( ) ;
65
56
66
57
builder . Services . AddTransient < IConfigureOptions < ImageSharpMiddlewareOptions > , ImageSharpConfigurationOptions > ( ) ;
67
58
Original file line number Diff line number Diff line change 34
34
<PackageReference Include =" MiniProfiler.AspNetCore.Mvc" Version =" 4.2.22" />
35
35
<PackageReference Include =" NETStandard.Library" Version =" 2.0.3" />
36
36
<PackageReference Include =" Serilog.AspNetCore" Version =" 4.1.0" />
37
- <PackageReference Include =" SixLabors.ImageSharp.Web" Version =" 1.0.3 " />
37
+ <PackageReference Include =" SixLabors.ImageSharp.Web" Version =" 1.0.4 " />
38
38
<PackageReference Include =" Smidge.Nuglify" Version =" 4.0.0" />
39
39
<PackageReference Include =" Smidge.InMemory" Version =" 4.0.0" />
40
40
<PackageReference Include =" Dazinator.Extensions.FileProviders" Version =" 2.0.0" />
You can’t perform that action at this time.
0 commit comments