Automatically rotate an image (destructively) based on Exif Orientation tags. Useful for preprocessing images before sending to a second program that may not understand Exif orientation tags.
Go to file
2021-01-04 12:47:47 -08:00
.gitignore First commit 2021-01-04 12:00:05 -08:00
ApplyImageOrientation.py Seems to be working. 2021-01-04 12:47:47 -08:00
main.py Seems to be working. 2021-01-04 12:47:47 -08:00
Pipfile First commit 2021-01-04 12:00:05 -08:00
Pipfile.lock First commit 2021-01-04 12:00:05 -08:00
README.md Started the README 2021-01-04 12:05:24 -08:00

Mike's Auto Image Rotator

This program is quite simple: It will look through your jpeg image's exif data and apply rotation automatically.

This is useful for preprocessing images before sending them through a second program that may not support orientation via exif data.

by Mike Peralta

Requirements

  • Python3
  • pipenv

Installation

Enter the repo's directory and install dependencies using pipenv, like so:

$ cd /path/to/repo
$ pipenv install

Usage

Invocation

Invoke directly like so:

$ cd /path/to/repo
$ pipenv run python ./main.py --help

Invoke in a persistent environment shell like so:

$ cd /path/to/repo
$ pipenv shell
$ python main.py --help

Arguments

Use the --help argument shown above to see all available options.