auto-orientation for images in strip command as exif orientation does not work in browsers with webp

This commit is contained in:
2026-03-09 15:47:24 +01:00
parent bee37a65f3
commit 062efa3505
2 changed files with 9 additions and 7 deletions
@@ -3,6 +3,7 @@ using SixLabors.ImageSharp.Web;
using SixLabors.ImageSharp.Web.Commands;
using SixLabors.ImageSharp.Web.Processors;
using System.Globalization;
using SixLabors.ImageSharp.Processing;
namespace zero.Media.ImageSharp.Processors;
@@ -35,6 +36,8 @@ public class StripMetadataWebProcessor : IImageWebProcessor
if (strip)
{
image.Image.Mutate(x => x.AutoOrient());
image.Image.Metadata.ExifProfile = null;
image.Image.Metadata.XmpProfile = null;
image.Image.Metadata.IptcProfile = null;