ExifTool Forum

ExifTool => Developers => Topic started by: evilaro on October 15, 2012, 06:31:10 PM

Title: Speeding up the process
Post by: evilaro on October 15, 2012, 06:31:10 PM

Hi:

I use this type of code to extract the orientation.

      run(false, 'exiftool.exe -orientation "&Mfile"  > resul.txt   ')         

Since I need to do it one image at a time, not a whole directory.

I do a loop, changing the value of Mfile
It works but it takes a long time plus keeps openning the DOS window all the time.

I have tried the  -execute     or  the      -stay_open
like this...

      run(false, 'exiftool.exe -orientation  -stay_open "&Mfile"  > resul.txt   ')         

But it is not working.

Any Ideas?

Thanks

Emilio



Title: Re: Speeding up the process
Post by: Phil Harvey on October 16, 2012, 06:40:44 AM
The -stay_open option works in conjunction with the -@ option.

The idea is that you can speed things up if you can run exiftool only once.  You'll find lots of examples in the forum.

- Phil