ExifTool Forum

ExifTool => The Image::ExifTool API => Topic started by: Mombo on August 13, 2024, 05:34:57 PM

Title: -w or -textOnly %c usage in the ExifTool API?
Post by: Mombo on August 13, 2024, 05:34:57 PM
I'm writing a Perl script using your fabulous ExifTool and I'm having an issue with duplicate file names. How can I get the -w %c option in the Perl library Image::ExifTool API?

Thanks in advance.

Mombo
Title: Re: -w or -textOnly %c usage in the ExifTool API?
Post by: Phil Harvey on August 13, 2024, 09:14:52 PM
This option is handled entirely by the "exiftool" script, and not the API.  You'll have to check for existence of the output file yourself, and increment a number in the file name until you find one that doesn't exist.

- Phil