https://github.com/sepppenner/autoimageturner
Rotating images based on the 'orientation' EXIF tag with JHEAD software.
https://github.com/sepppenner/autoimageturner
exif-tags jhead orientation rotate-images
Last synced: 7 months ago
JSON representation
Rotating images based on the 'orientation' EXIF tag with JHEAD software.
- Host: GitHub
- URL: https://github.com/sepppenner/autoimageturner
- Owner: SeppPenner
- License: mit
- Created: 2016-08-12T14:39:34.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2025-01-05T22:44:08.000Z (10 months ago)
- Last Synced: 2025-01-05T23:26:35.003Z (10 months ago)
- Topics: exif-tags, jhead, orientation, rotate-images
- Language: C#
- Homepage:
- Size: 24 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
- License: License.txt
Awesome Lists containing this project
README
AutoImageTurner und AutoImageTurnInCSharp
===========================================
Rotating images based on the 'orientation' EXIF tag with JHEAD software.AutoImageTurnInCSharp: Kind of a 'library' for CSharp on how to rotate images based on the 'orientation' EXIF tag.
AutoImageTurner is the corresponding .exe.
[See here](https://msdn.microsoft.com/en-us/library/windows/desktop/ms534418(v=vs.85).aspx) for more information on the EXIF tags used in Windows (.Net).
For C# see also [here](https://github.com/SeppPenner/RotateImagesInCSharp) for another possible implementation.
Example images using each of the EXIF orientation flags (1-to-8), in both landscape and portrait orientations [See here](https://github.com/recurser/exif-orientation-examples).
[See here](http://www.daveperrett.com/articles/2012/07/28/exif-orientation-handling-is-a-ghetto/) for more information.
[](https://ci.appveyor.com/project/SeppPenner/autoimageturner)
[](https://github.com/SeppPenner/AutoImageTurner/issues)
[](https://github.com/SeppPenner/AutoImageTurner/network)
[](https://github.com/SeppPenner/AutoImageTurner/stargazers)
[](https://raw.githubusercontent.com/SeppPenner/AutoImageTurner/master/License.txt)
[](https://snyk.io/test/github/SeppPenner/AutoImageTurner)
[](https://franzhuber23.blogspot.de/)
[](https://patreon.com/SeppPennerOpenSourceDevelopment)
[](https://paypal.me/th070795)## Basic usage
```csharp
using System;
using System.Windows.Forms;namespace AutoImageTurner
{
public class AutoTurnExample
{
public void Test()
{
try
{
IAutoTurnImages rotator = new AutoTurnImages();
rotator.RotateImagesInFolder("C:\\abc", "jpg");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, ex.StackTrace, MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
}
public void Test()
{
try
{
IAutoTurnImages rotator = new AutoTurnImages();
rotator.RotateImagesInFolderNoMessage("C:\\abc", "jpg");
//Doesn't show an error message from the method itself
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, ex.StackTrace, MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
}
}
}
```## Screenshot from the executable
Copyright (of the images)
-------------------------Dave Perrett :: hello@daveperrett.com :: [@daveperrett](http://twitter.com/daveperrett)
These images are licensed under the [MIT License](http://opensource.org/licenses/MIT).
Copyright (c) 2010 Dave Perrett. See [License](https://github.com/recurser/exif-orientation-examples/blob/master/LICENSE) for details.
Change history
--------------See the [Changelog](https://github.com/SeppPenner/AutoImageTurner/blob/master/Changelog.md).