https://github.com/sepppenner/rotateimagesincsharp
Kind of a 'library' for CSharp (.Net with WPF) on how to rotate images based on the 'orientation' EXIF tag.
https://github.com/sepppenner/rotateimagesincsharp
Last synced: 8 months ago
JSON representation
Kind of a 'library' for CSharp (.Net with WPF) on how to rotate images based on the 'orientation' EXIF tag.
- Host: GitHub
- URL: https://github.com/sepppenner/rotateimagesincsharp
- Owner: SeppPenner
- License: mit
- Created: 2014-11-09T13:18:24.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-01-04T20:22:58.000Z (over 2 years ago)
- Last Synced: 2025-01-06T02:10:46.174Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 24.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
- License: License.txt
Awesome Lists containing this project
README
RotateImagesInCSharp
===============
Kind of a 'library' for CSharp (.Net with WPF) on how to rotate images based on the 'orientation' EXIF tag.
[](https://github.com/SeppPenner/RotateImagesInCSharp/issues)
[](https://github.com/SeppPenner/RotateImagesInCSharp/network)
[](https://github.com/SeppPenner/RotateImagesInCSharp/stargazers)
[](https://raw.githubusercontent.com/SeppPenner/RotateImagesInCSharp/master/License.txt)
[](https://snyk.io/test/github/SeppPenner/RotateImagesInCSharp)
[](https://franzhuber23.blogspot.de/)
[](https://patreon.com/SeppPennerOpenSourceDevelopment)
[](https://paypal.me/th070795)
[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/AutoImageTurner) 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/rotateimagesincsharp)
## Basic usage
```csharp
public void Test()
{
IAutoRotate rotator = new AutoRotate();
rotator.AutorotateImage(new Bitmap("C:\\Users\\whatever\\Desktop\\abc.jpg"));
}
```
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/RotateImagesInCSharp/blob/master/Changelog.md).