Prevent creating default xmp- block

Started by wilfo, June 20, 2017, 06:31:32 AM

Previous topic - Next topic

wilfo

Hi Phil,
i am extracting the xmp- block out of (in this case EPS- data) by
exiftool -use MWG -o outfile.xmp infile.eps
All works fine; but is there a way to prevent creation of a standard (default) XMP- output,
if the inputfile hasn't got any xmp- header?
I might have overlooked some option.
Thanks and best wishes
Wilfo

Phil Harvey

Hi Wilfo,

Your command doesn't extract the XMP block.  It generates XMP from all existing metadata in the file.

To extract the XMP block, do this:

exiftool -xmp -b -w xmp infile.eps

This command will create an "infile.xmp" file with the XMP block from infile.eps.  If there is no XMP then infile.xmp is not created.

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

wilfo

Hi Phil,
ExifTool seems to be too powerful for me. I'll have to work at it;
but its fun doing that.
Thanks for the prompt response.
Wilfo