/RotateImagesInCSharp

Kind of a 'library' for CSharp (.Net with WPF) on how to rotate images based on the 'orientation' EXIF tag.

Primary LanguageC#MIT LicenseMIT

RotateImagesInCSharp

Kind of a 'library' for CSharp (.Net with WPF) on how to rotate images based on the 'orientation' EXIF tag.

GitHub issues GitHub forks GitHub stars License: MIT Known Vulnerabilities Blogger Patreon PayPal

See here for more information on the EXIF tags used in Windows (.Net).

For C# see also here for another possible implementation.

Example images using each of the EXIF orientation flags (1-to-8), in both landscape and portrait orientations See here.

See here for more information.

Build status

Basic usage

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

These images are licensed under the MIT License.

Copyright (c) 2010 Dave Perrett. See License for details.

Change history

See the Changelog.