Option similar to -P (-Preserve) command-line option?

Started by Hayo Baan, July 20, 2014, 05:09:11 AM

Previous topic - Next topic

Hayo Baan

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 ;)
Hayo Baan – Photography
Web: www.hayobaan.nl

Hayo Baan

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
Hayo Baan – Photography
Web: www.hayobaan.nl

Phil Harvey

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

Hayo Baan

Hi Phil,

Ok, clear!

Thanks for your (always) prompt answer,
Hayo
Hayo Baan – Photography
Web: www.hayobaan.nl