diff --git a/shared-infrastructure b/shared-infrastructure index bed6f53..7ac5703 160000 --- a/shared-infrastructure +++ b/shared-infrastructure @@ -1 +1 @@ -Subproject commit bed6f53bea0239e4afa19e81c24a6fff421707e1 +Subproject commit 7ac5703452348d9295db31fc0912c2bd9e419dc9 diff --git a/src/ImageSharp.Web/ImageSharp.Web.csproj b/src/ImageSharp.Web/ImageSharp.Web.csproj index e149431..1e93567 100644 --- a/src/ImageSharp.Web/ImageSharp.Web.csproj +++ b/src/ImageSharp.Web/ImageSharp.Web.csproj @@ -1,4 +1,4 @@ - + SixLabors.ImageSharp.Web @@ -46,7 +46,7 @@ - + diff --git a/src/ImageSharp.Web/Middleware/ImageSharpMiddlewareOptions.cs b/src/ImageSharp.Web/Middleware/ImageSharpMiddlewareOptions.cs index 8c5382e..f257d4b 100644 --- a/src/ImageSharp.Web/Middleware/ImageSharpMiddlewareOptions.cs +++ b/src/ImageSharp.Web/Middleware/ImageSharpMiddlewareOptions.cs @@ -38,7 +38,7 @@ public class ImageSharpMiddlewareOptions // https://zpl.fi/exif-orientation-in-different-formats/ // To ensure that orientation is handled correctly for web use we transparently add the auto-orient command if it is not already present. // See issues #304, #375, and #381 for more details. - if (!context.Commands.Contains(AutoOrientWebProcessor.AutoOrient)) + if (context.Commands.Count > 0 && !context.Commands.Contains(AutoOrientWebProcessor.AutoOrient)) { context.Commands.Insert(0, new KeyValuePair(AutoOrientWebProcessor.AutoOrient, bool.TrueString)); }