ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:54:22 AM

Title: How to delete EXIF data except...
Post by: Archive on May 12, 2010, 08:54:22 AM
[Originally posted by mariusn on 2008-07-01 11:31:10-07]

Hi!

I wanted to remove and add some exif data to some of my photos and I have found ExifTool. I've read the documentation on the website, but I have a problem...

I want to remove all the EXIF data from my photos, except the fnumber (aperture), focal length and exposure time (shutter speed) and add a copyright information. I also want to apply this command to all my images at once!

So I got stuck when I wanted to exclude the fnumber, shutterspeed and focallenght info... and the copyright information.

Can someone please show me the exact command I have to use in order to remove all the information from the photos, EXCEPT the fnumber (aperture), focal length and exposure time (shutter speed) and also to add copyright info with my name.

Thank you!
Title: Re: How to delete EXIF data except...
Post by: Archive on May 12, 2010, 08:54:22 AM
[Originally posted by exiftool on 2008-07-02 11:30:30-07]

The exclude (--TAG) syntax can not be used to exclude individual
tags from deletion (see the Note below):

Code:
      --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).

            Note that this will not exclude individual tags from a group
            delete.  Instead, the tags must be recovered using the
            -TagsFromFile option.

So your command should look like this:

exiftool -exif:all= -tagsfromfile @ -exif:fnumber -exif:focallength -exif:exposuretime -exif:copyright="text here" -r DIR

Note that this will preserve all original images by adding "_original" to their names.  If you already have backups, you can add -overwrite_original to the command line.

- Phil