ExifTool Forum

ExifTool => Newbies => Topic started by: inte on April 04, 2014, 12:55:26 PM

Title: delete all exif data, but retain image orientation?
Post by: inte on April 04, 2014, 12:55:26 PM
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?
Title: Re: delete all exif data, but retain image orientation?
Post by: inte on April 04, 2014, 01:13:37 PM
Nikon D3s JPG files...
Title: Re: delete all exif data, but retain image orientation?
Post by: inte on April 04, 2014, 01:15:54 PM
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.
Title: Re: delete all exif data, but retain image orientation?
Post by: StarGeek on April 04, 2014, 07:05:47 PM
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.
Title: Re: delete all exif data, but retain image orientation?
Post by: inte on April 04, 2014, 09:33:34 PM
Perfect!