diff --git a/src/ImageSharp/Processing/Processors/Transforms/AutoRotateProcessor.cs b/src/ImageSharp/Processing/Processors/Transforms/AutoOrientProcessor.cs
similarity index 93%
rename from src/ImageSharp/Processing/Processors/Transforms/AutoRotateProcessor.cs
rename to src/ImageSharp/Processing/Processors/Transforms/AutoOrientProcessor.cs
index 76271529d..bf9f86788 100644
--- a/src/ImageSharp/Processing/Processors/Transforms/AutoRotateProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Transforms/AutoOrientProcessor.cs
@@ -2,8 +2,6 @@
// Licensed under the Apache License, Version 2.0.
using System;
-using System.Threading.Tasks;
-using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.MetaData.Profiles.Exif;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;
@@ -14,13 +12,13 @@ namespace SixLabors.ImageSharp.Processing.Processors
/// Adjusts an image so that its orientation is suitable for viewing. Adjustments are based on EXIF metadata embedded in the image.
///
/// The pixel format.
- internal class AutoRotateProcessor : ImageProcessor
+ internal class AutoOrientProcessor : ImageProcessor
where TPixel : struct, IPixel
{
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
- public AutoRotateProcessor()
+ public AutoOrientProcessor()
{
}
diff --git a/src/ImageSharp/Processing/Transforms/AutoOrient.cs b/src/ImageSharp/Processing/Transforms/AutoOrient.cs
index 186c3b223..b8b31ff27 100644
--- a/src/ImageSharp/Processing/Transforms/AutoOrient.cs
+++ b/src/ImageSharp/Processing/Transforms/AutoOrient.cs
@@ -1,9 +1,8 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
-using System;
using SixLabors.ImageSharp.PixelFormats;
-using SixLabors.ImageSharp.Processing;
+using SixLabors.ImageSharp.Processing.Processors;
namespace SixLabors.ImageSharp
{
@@ -20,6 +19,6 @@ namespace SixLabors.ImageSharp
/// The
public static IImageProcessingContext AutoOrient(this IImageProcessingContext source)
where TPixel : struct, IPixel
- => source.ApplyProcessor(new Processing.Processors.AutoRotateProcessor());
+ => source.ApplyProcessor(new AutoOrientProcessor());
}
}
\ No newline at end of file
diff --git a/tests/ImageSharp.Tests/Processing/Transforms/AutoOrientTests.cs b/tests/ImageSharp.Tests/Processing/Transforms/AutoOrientTests.cs
index dbb2d8415..20de25054 100644
--- a/tests/ImageSharp.Tests/Processing/Transforms/AutoOrientTests.cs
+++ b/tests/ImageSharp.Tests/Processing/Transforms/AutoOrientTests.cs
@@ -1,9 +1,6 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
-using System;
-using SixLabors.ImageSharp.PixelFormats;
-using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Processors;
using Xunit;
@@ -12,10 +9,10 @@ namespace SixLabors.ImageSharp.Tests.Processing.Transforms
public class AutoOrientTests : BaseImageOperationsExtensionTest
{
[Fact]
- public void AutoOrient_AutoRotateProcessor()
+ public void AutoOrient_AutoOrientProcessor()
{
this.operations.AutoOrient();
- this.Verify>();
+ this.Verify>();
}
}
}
\ No newline at end of file