Skip to content

Instantly share code, notes, and snippets.

@mehdi-farsi
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mehdi-farsi/e0e654232f02bbedc9f6 to your computer and use it in GitHub Desktop.
Save mehdi-farsi/e0e654232f02bbedc9f6 to your computer and use it in GitHub Desktop.
Change EXIF orientation using CLI
# 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