ExifTool Forum

ExifTool => The Image::ExifTool API => Topic started by: Hayo Baan on July 20, 2014, 05:09:11 AM

Title: Option similar to -P (-Preserve) command-line option?
Post by: Hayo Baan on July 20, 2014, 05:09:11 AM
Hi Phil,

maybe I have overlooked it somehow, but there doesn't seem to be an Image::ExifTool option similar to the -P command-line option. Any plans of adding this? It wasn't to hard to create this small piece of functionality myself in my script, but it would be nice if it was embedded in Image::ExifTool too ;)
Title: Re: Option similar to -P (-Preserve) command-line option?
Post by: Hayo Baan on July 20, 2014, 06:42:03 AM
Oh, and on top of the lack of -P equivalent, there also doesn't seem to be a way to mimic -overwrite_original_in_place. For this I have not yet determined a workaround to use in my script either... (is there one?)

Cheers,
Hayo
Title: Re: Option similar to -P (-Preserve) command-line option?
Post by: Phil Harvey on July 20, 2014, 09:16:12 AM
Hi Hayo,

The answer is no to both questions.  These features are handled by the script, not the library.  The -overwrite_original_in_place is done by writing to a temporary file, then opening the original for writing and copying the temporary file overtop of the original.

- Phil
Title: Re: Option similar to -P (-Preserve) command-line option?
Post by: Hayo Baan on July 20, 2014, 09:46:16 AM
Hi Phil,

Ok, clear!

Thanks for your (always) prompt answer,
Hayo