On the exif tags

Started by evilaro, December 15, 2010, 07:13:23 AM

Previous topic - Next topic

evilaro

Phil:

I hope I am not overASKING...

I would like to incorporate some (in some cases ALL) the exif tags to my aplication.
To obtain ALL the exif tags from one file I use :

      run(false, 'C:\exif\exiftool.exe "&myfile" > C:\exif\exif.txt ')

With this I get this exif.txt file which then I import into my database tables.

The problem is that one by one it takes a few seconds to do the proces which is fine
for one file but for a big folder it is to much.
Is there a way that I can get the tags individually as a somehow a variable?

Also... as another solution
I have read that using the DIR, the whole process takes much less
but then I do not understand where Will I get the data from each individual file.

Some insight would be appreciated.

Emilio

In some of my pictures o could get up to 250 tags...
The
www.evilfoto.eu
*************

Phil Harvey

There are various ways to speed this up.  The easiest is to specify the directory name or the names of all of the files in the same command.  When multiple files are specified, exiftool prints a separator line like this between metadata for each file:

======== file.jpg

Another more advanced technique is to always keep exiftool running and send commands via the -stay_open technique (see the application documentation for details).

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

evilaro

Phil:

I have tried the first option and it is great and much much faster...

Thanks

Emilio


Quote from: Phil Harvey on December 15, 2010, 07:19:15 AM
There are various ways to speed this up.  The easiest is to specify the directory name or the names of all of the files in the same command.  When multiple files are specified, exiftool prints a separator line like this between metadata for each file:

======== file.jpg

Another more advanced technique is to always keep exiftool running and send commands via the -stay_open technique (see the application documentation for details).

- Phil

www.evilfoto.eu
*************