delete all exif data, but retain image orientation?

Started by inte, April 04, 2014, 12:55:26 PM

Previous topic - Next topic

inte

This command line: exiftool -all= -copyright="Photo"= did the job, but any images shot portrait orientation are now landscape.

Is there a way to delete all metadata except whatever is necessary to retain the orientation of the images?

inte


inte

Tried adding

-orientation='(normal)'
-cameraorientation='(normal)'

No errors returned but tags have no effect - all images are set to landscape (horizontal) after running the command.

StarGeek

You command would look like:

exiftool -all= -tagsfromfile @ -Orientation FILE

This removes all data, then adds the orientation setting back in. 

For any portrait orientated files that you've already deleted the data from, you'll have to run either
ExifTool -Orientation="Rotate 90 CW" FILE
or
ExifTool -Orientation="Rotate 270 CW" FILE
depending upon the file, to rotate them back to the normal position.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).