3

Removing exif-data via Windows file properties does not allow to delete only orientation attribute and removing all exif data removes GPS position also.

Is there any way to remove only the orientation attribute leaving other exif data intact?

Roger Wayne
  • 155
  • 1
  • 1
  • 4

3 Answers3

14

You can use exiftool to remove the orientation tag:

exiftool -Orientation= /target/dir/or/File

Replace /target/dir/or/File with the files and/or directories you want to process. If run under Unix/Mac, use single quotes to avoid bash interpretation.

  • To suppress the creation of backup files, add -overwrite_original.

  • To recurse into subdirectories, add -r.

xiota
  • 26,951
  • 4
  • 39
  • 126
StarGeek
  • 3,803
  • 11
  • 21
2

In fact the mentioned exiftool command did not work for me. It rewrote the metadata, but did not remove the Orientation tag. I finally found this solution:

exiftool -n -Orientation=0 /path/to/my/file
0

Found answer: Rotate photo on Windows File Explorer. Orientation attribute is removed during rotation but all other exif-data is remaining in the photo.

Roger Wayne
  • 155
  • 1
  • 1
  • 4