Last active
August 29, 2015 14:07
-
-
Save mehdi-farsi/e0e654232f02bbedc9f6 to your computer and use it in GitHub Desktop.
Change EXIF orientation using CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Required: | |
# Mac OS | |
$> brew install exiftool | |
# Ubuntu && Debian | |
$> sudo apt-get install libimage-exiftool-perl | |
# Example: Set orientation to Normal (0°) | |
# This command overwrite EXIF attribute on the original picture | |
# For more information on EXIF orientation: http://sylvana.net/jpegcrop/exif_orientation.html | |
$> exiftool -n -r -overwrite_original -if '$Orientation ne 1' -Orientation=1 /PATH/TO/PICTURE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment