ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: HansS713 on October 27, 2014, 07:38:34 AM

Title: -overwrite_original does not work for xmp output
Post by: HansS713 on October 27, 2014, 07:38:34 AM
It should be possible to overwrite existing xmp files, but command:

exiftool -m -XMP-mwg-rs:all -o %d%f_XMP-mwg-rs.xmp -overwrite_original -ext jpg -r "."

gives e.g.:
Error: './20140808_Button_Reaction_XMP-mwg-rs.xmp' already exists - ./20140808_Button_Reaction.JPG

and -o! does not work (and -overwrite_original_in_place gives "Can't overwrite in place when -o option is used").

exiftool v9.74
Win7pro-64 SP1
Title: Re: -overwrite_original does not work for xmp output
Post by: Phil Harvey on October 28, 2014, 04:42:33 AM
The -o option is used mainly for image file output, and overwriting random image files is something that I don't want ExifTool to ever do.

The -overwrite_original in your example refers to the original file, not whatever file was specified by -o,

You should delete this file yourself if you want to overwrite it.

- Phil
Title: Re: -overwrite_original does not work for xmp output
Post by: HansS713 on October 28, 2014, 03:32:45 PM
For me it's not logical that exiftool does not allow to overwrite existing *.xmp files. It's not easy to make a script which would find all files in same way as exiftool would do using -ext and -r. I think -overwrite_original or -o! should work for xmp output (but in my use-case I can simply delete all xmp files as you suggested).