Skip to content

Commit c937a44

Browse files
Cleanup deps, update interface and test image
1 parent 09c256e commit c937a44

24 files changed

Lines changed: 232 additions & 233 deletions

samples/ImageSharp.Web.Sample/wwwroot/imagesharp-logo.png

Lines changed: 0 additions & 3 deletions
This file was deleted.

samples/ImageSharp.Web.Sample/wwwroot/index.html

Lines changed: 194 additions & 194 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 0 deletions
Loading

src/Directory.Build.targets

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@
1717
<Import Project="$(MSBuildThisFileDirectory)..\Directory.Build.targets" />
1818

1919
<ItemGroup>
20-
<PackageReference Update="AWSSDK.S3" Version="3.7.7.16" />
21-
<PackageReference Update="Azure.Storage.Blobs" Version="12.10.0" />
22-
<PackageReference Update="Microsoft.IO.RecyclableMemoryStream" Version="2.2.0" />
2320
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
24-
<PackageReference Update="SixLabors.ImageSharp" Version="2.0.0" />
2521
</ItemGroup>
2622

2723
<ItemGroup Condition="'$(TargetFramework)' != 'netcoreapp2.1'">

src/ImageSharp.Web.Providers.AWS/ImageSharp.Web.Providers.AWS.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</ItemGroup>
3232

3333
<ItemGroup>
34-
<PackageReference Include="AWSSDK.S3" />
34+
<PackageReference Include="AWSSDK.S3" Version="3.7.8.8" />
3535
</ItemGroup>
3636

3737
<ItemGroup>

src/ImageSharp.Web.Providers.Azure/ImageSharp.Web.Providers.Azure.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
</ItemGroup>
3232

3333
<ItemGroup>
34-
<PackageReference Include="Azure.Storage.Blobs" />
34+
<!--Do not upgrade this. Last Version that supports .NET Core 2.1-->
35+
<PackageReference Include="Azure.Storage.Blobs" Version="12.10.0" />
3536
</ItemGroup>
3637

3738
<ItemGroup>

src/ImageSharp.Web/ImageSharp.Web.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<AssemblyTitle>SixLabors.ImageSharp.Web</AssemblyTitle>
@@ -44,8 +44,8 @@
4444
</ItemGroup>
4545

4646
<ItemGroup>
47-
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" />
48-
<PackageReference Include="SixLabors.ImageSharp" />
47+
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="2.2.0" />
48+
<PackageReference Include="SixLabors.ImageSharp" Version="2.1.0" />
4949
</ItemGroup>
5050

5151
<Import Project="..\..\shared-infrastructure\src\SharedInfrastructure\SharedInfrastructure.projitems" Label="Shared" />

src/ImageSharp.Web/Processors/BackgroundColorWebProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ public FormattedImage Process(
4747
}
4848

4949
/// <inheritdoc/>
50-
public bool RequiresAlphaComponent(CommandCollection commands, CommandParser parser, CultureInfo culture) => true;
50+
public bool RequiresAlphaAwarePixelFormat(CommandCollection commands, CommandParser parser, CultureInfo culture) => true;
5151
}
5252
}

src/ImageSharp.Web/Processors/FormatWebProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ public FormattedImage Process(
6666
}
6767

6868
/// <inheritdoc/>
69-
public bool RequiresAlphaComponent(CommandCollection commands, CommandParser parser, CultureInfo culture) => true;
69+
public bool RequiresAlphaAwarePixelFormat(CommandCollection commands, CommandParser parser, CultureInfo culture) => true;
7070
}
7171
}

src/ImageSharp.Web/Processors/IImageWebProcessor.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,18 @@ FormattedImage Process(
3737
CultureInfo culture);
3838

3939
/// <summary>
40+
/// <para>
4041
/// Returns a value indicating whether the image to be processed should be decoded using a pixel format that supports
4142
/// an alpha component for correct processing.
43+
/// </para>
44+
/// <para>This method is used to determine whether optimizations can be enabled to reduce memory consumption during processing.</para>
4245
/// </summary>
4346
/// <param name="commands">The ordered collection containing the processing commands.</param>
4447
/// <param name="parser">The command parser use for parting commands.</param>
4548
/// <param name="culture">
4649
/// The <see cref="CultureInfo"/> to use as the current parsing culture.
4750
/// </param>
48-
/// <returns>The <see cref="bool"/> indicating whether an alpha component is required.</returns>
49-
bool RequiresAlphaComponent(CommandCollection commands, CommandParser parser, CultureInfo culture);
51+
/// <returns>The <see cref="bool"/> indicating whether a pixel format containing an alpha component is required.</returns>
52+
bool RequiresAlphaAwarePixelFormat(CommandCollection commands, CommandParser parser, CultureInfo culture);
5053
}
5154
}

0 commit comments

Comments
 (0)