clear all - what do i need to retain

Started by Ferdinand Paris, October 30, 2012, 08:39:07 AM

Previous topic - Next topic

Ferdinand Paris

Phil

I have an iMatch script that copies various kinds of metadata (EXIF, XMP, IPTC) from master files (mostly RAW) to developed JPGs or TIFFs using ExifTool.  There are options to clear various things before copy.  The problem with the "-all:all=" option is that it also clears the ICC profile, and that can't be copied back from the RAW.

So my first question is:  what's the best way to deal with this?  Simply insert it back immediately after the clear using something like?:

exiftool -all:all= -tagsfromfile @ -icc_profile dst.jpg

(I read in the documentation that individual tags can't be excluded, so the tag has to be recovered this way, as I understand it.)

Second question:  are there any other tags that can't be copied back from a typical RAW after "-all:all=" and which therefore need to be recovered in a similar fashion, or will a copy of all EXIF / XMP cover things?

F_P

Phil Harvey

Hi Ferdinand,

You can't exclude individual tags from a mass deletion, but you can exclude whole groups (and ICC_Profile is a group):

exiftool -all:all= --icc_profile:all ...

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).