Skip to content

Commit 620cbde

Browse files
Merge pull request #398 from SixLabors/js/update-license
Bump ImageSharp and adjust auto-orient logic
2 parents fefde84 + 4035d76 commit 620cbde

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/ImageSharp.Web/ImageSharp.Web.csproj

Lines changed: 2 additions & 2 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>
@@ -46,7 +46,7 @@
4646
<ItemGroup>
4747
<FrameworkReference Include="Microsoft.AspNetCore.App" />
4848
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="3.0.1" />
49-
<PackageReference Include="SixLabors.ImageSharp" Version="4.0.0-alpha.0.88" />
49+
<PackageReference Include="SixLabors.ImageSharp" Version="4.0.0-alpha.0.107" />
5050
</ItemGroup>
5151

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

src/ImageSharp.Web/Middleware/ImageSharpMiddlewareOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class ImageSharpMiddlewareOptions
3838
// https://zpl.fi/exif-orientation-in-different-formats/
3939
// To ensure that orientation is handled correctly for web use we transparently add the auto-orient command if it is not already present.
4040
// See issues #304, #375, and #381 for more details.
41-
if (!context.Commands.Contains(AutoOrientWebProcessor.AutoOrient))
41+
if (context.Commands.Count > 0 && !context.Commands.Contains(AutoOrientWebProcessor.AutoOrient))
4242
{
4343
context.Commands.Insert(0, new KeyValuePair<string, string?>(AutoOrientWebProcessor.AutoOrient, bool.TrueString));
4444
}

0 commit comments

Comments
 (0)