ExifTool Forum

ExifTool => Developers => Topic started by: herb on August 01, 2015, 03:42:57 AM

Title: option -o! what do you think about
Post by: herb on August 01, 2015, 03:42:57 AM
Hello Phil,

Exiftool has e.g. 2 options in order to create new metadata files:
With option -w it is possible to create new text-files (or also html or xml files). Embedded thumbnails can also be exported into an image file using -w.
This option also allows to overwrite an existing text-file, using -w!

In order to e.g. create a xmp sidecar file you can use option -o.
But this option does not allow to overwrite an existing file.
(I do not talk about the mechanism that for an existing file a backup <file>_original is created).

What do you think about an option -o! (just as -w!)

Best regards
Herb
Title: Re: option -o! what do you think about
Post by: Phil Harvey on August 01, 2015, 09:02:55 AM
Hi Herb,

I hear you, but -o is used for all supported file formats, not only supported sidecar files.  I don't think it is a good idea to allow overwrite of output image files without warning.  I understand that you could overwrite images with -w! if you really tried, but I would think that the odds of doing this by accident with -o! would be much higher.  So although I see how this could be useful, I resist adding this feature because of the hazards involved.

- Phil
Title: Re: option -o! what do you think about
Post by: herb on August 01, 2015, 03:26:10 PM
Hello Phil,

thanks for your statement. I understand and agree.

Best regards
Herb