3
\$\begingroup\$

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?

\$\endgroup\$
7

3 Answers 3

14
\$\begingroup\$

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.

\$\endgroup\$
2
\$\begingroup\$

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
\$\endgroup\$
0
\$\begingroup\$

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

\$\endgroup\$
2
  • \$\begingroup\$ Who knows how Windows will mangle the data? ... But maybe it's okay... Are “Windows Photo Viewer” rotations lossless? \$\endgroup\$
    – xiota
    Commented Jun 27, 2018 at 8:35
  • \$\begingroup\$ Wait, what? If I tell File Explorer to rotate my image, it will delete the rotation tag? A) It does not (tried it just now, IrfanView now rotates the picture as I told File Explorer before), B) if it did, this would be a major bug in the rotation routine and I wouldn't count on it being there forever. \$\endgroup\$
    – flolilo
    Commented Jun 27, 2018 at 15:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.