Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Currently I use exiftool with the -all= option and it deletes all the EXIF data from my photos:

exiftool -overwrite_original -all= /Users/andyl/photos/*.jpg

Now I want exiftool to delete all the EXIF information but NOT the photo's title, caption and keywords.

How I can achieve this?

share|improve this question
1  
Welcome to Superuser. I edited your question, if you are unhappy with the changes feel free to revert the changes or edit it again. –  Baarn Jul 19 '12 at 9:28
add comment

1 Answer

up vote 1 down vote accepted

You should always check the man pages if you are in trouble.

man exiftools

   --TAG
        Exclude specified tag from extracted information.  Same as the -x
        option.  May also be used following a -tagsFromFile option to
        exclude tags from being copied, or to exclude groups from being
        deleted when deleting all information (ie. "-all= --exif:all"
        deletes all but EXIF information).  But note that this will not
        exclude individual tags from a group delete.  Instead, individual
        tags may be recovered using the -tagsFromFile option (ie. "-all=
        -tagsfromfile @ -artist").  Wildcards are permitted as described
        above for -TAG.

something like

   exiftool -overwrite_original -all= -tagsFromFile @ -title -caption -keywords /Users/andyl/photos/*.jpg

should work. Ensure that the tags really are named this way using exif /path/to/file.jpg.

What the command does? -all= deletes all the tags, -tagsFromFile @ takes the listed flags from the source file, in this case @ represents the current file, (you could of course substitute with a fixed file here like -tagsFromFile pic.jpg) and writes them to the destination.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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