ExifTool Forum

General => Other Discussion => Topic started by: edwind on February 25, 2014, 08:58:38 AM

Title: CSV not being created
Post by: edwind on February 25, 2014, 08:58:38 AM
Hi,
I learnt to use exiftool a while ago and made notes for myself knowing that it could be a couple of months before using it again. 
My requirement is to add geodata to an image file.
My notes tell me to use -all -csv C:\path to image
This produces all the relevant info. in the command prompt window but not the csv file in users/user as it did before.
According to my notes, a csv file is produced and after I have added a few columns wioth info to it, I re-write it to the image, but no csv file is being produced.
Did I forget something in my notes?
Title: Re: CSV not being created
Post by: Phil Harvey on February 25, 2014, 09:17:51 AM
The command would be:

exiftool -all -csv "c:\path to image" > out.csv

But if you just want to write GPS information, I would suggest starting from a blank csv file (with only the SourceFile column) and adding only the GPS tags.  When you read back a CSV file containing all tags, you will be rewriting everything unnecessarily, and there may be unwanted side-effects.

- Phil
Title: Re: CSV not being created
Post by: edwind on February 25, 2014, 11:39:11 AM
Hi Phil,
Thanks for that.
Working a treat now.
I am not really best qualified to use such as things as the command line, only ever having learned what I've needed at the time of needing it. Your suggestion of starting with a blank csv I'm sure makes sense but what I have done does work (when my notes don't miss steps out).
I write the extra columns needed in a csv and add them to the original. It is probably more work than required but it does work and it took me a lot of time and trials to get there.
If you could walk me through a simpler step by step method I would be most obliged but I can't for the life of me see why you want to spend the time unnecessarily.
Thanks for your help.
Edwind
Title: Re: CSV not being created
Post by: Phil Harvey on February 25, 2014, 11:44:10 AM
Hi Edwind,

In your command, instead of -all, use -nothing to start from a blank CSV file containing only the SourceFile column.

- Phil