TagsFromFile missing tags when also specifying ICC_Profile

Started by Adam, September 12, 2022, 12:28:14 PM

Previous topic - Next topic

Adam

Hello,

I've been trying to google around for this but am coming up dry, so figured I'd post here for some clarification. For reference I'm using version 12.44.

I have a CR3 file which I process and then output as a DNG file. I then want to copy all the tags from the CR3 to the DNG, so something like this works fine:
exiftool -TagsFromFile input.cr3 output.dng
However, I'm also trying to set some specific tags and also copy any ICC profiles if they exist so my actual command is:

exiftool -TagsFromFile input.cr3 -all:all -icc_profile -Orientation#=1 "-ProfileName=Adobe Standard" output.dng
In this case nearly all the EXIF data from the CR3 gets dropped.

To fix the above command I've found that adding another TagsFromFile flag fixes it like so:

exiftool -TagsFromFile input.cr3 -all:all -icc_profile -TagsFromFile input.cr3 -Orientation#=1 "-ProfileName=Adobe Standard" output.dng
I'm not sure if this is just overwriting the previous one or if it's done in order or even recommended at all.

As a side note, just doing a raw -TagsFromFile seems to copy all the EXIF data properly, but if I add -all:all to it it doesn't. Not sure if this has anything to do with it. Hoping I'm just doing something wrong with the order or am just misunderstanding something basic.

Phil Harvey

The problem is that the EXIF is stored in different locations in CR3 files and DNG files.  Using -all:all copies metadata to the same location, so the EXIF isn't copied to the DNG.  Use -all instead of -all:all to let ExifTool copy the metadata to the proper location in the destination file.

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