Copying from Raw to Extracted JPEG

Started by blue-j, June 02, 2021, 04:14:56 PM

Previous topic - Next topic

blue-j

We're using ExifTool to extract the preview from raw files, and we'd like to copy relevant metadata from the source to the target.  Can anyone advise on best practice?  Will copying all be fine, or will that include fields that make no sense / are useless in the JPEG?

Thanks in advance for reflecting on this!

- J

Phil Harvey

I would give this a try to see if it does what you want:

exiftool -tagsfromfile RAWFILE -exif:all -makernotes JPGFILE

Yes, some information may not be relevant to the JPG.

But note that previews may already contain metadata for some raw formats.

- 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 ($).

blue-j

How might I omit a particular group?  Say, for example, I wanted everything copied but xmp-tiff.

exiftool -tagsfromfile SRCFILE --xmp-tiff:all OUTFILE

?

Phil Harvey

...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 ($).