ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: wilfo on June 20, 2017, 06:31:32 AM

Title: Prevent creating default xmp- block
Post by: wilfo on June 20, 2017, 06:31:32 AM
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
Title: Re: Prevent creating default xmp- block
Post by: Phil Harvey on June 20, 2017, 07:18:15 AM
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
Title: Re: Prevent creating default xmp- block
Post by: wilfo on June 20, 2017, 07:45:09 AM
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