Main Menu

Writing GPS data

Started by jean, October 28, 2016, 05:33:22 AM

Previous topic - Next topic

jean

Hi Phil

I use exiftool Under Windows with -stayopen

I write the following to the .args file:

-gpslongituderef
E
-gpslongitude
54.279999
-gpslatituderef
N
-gpslatitude
14.700000
c:\test\IMG_48.jpg
-execute

when i read the exiftool output Stream i get :

File not found: E
File not found: 54.279999
File not found:: N
File not found:: 14.700000
==================c:/test/IMG_48.jpg
  1 image files read
  4 files could not be read
{ready]


When i execute these commands under msdos it works correctly.
Any idea ?
jean

Phil Harvey

Hi Jean,

You forgot the "=" signs:

-gpslongituderef=E
-gpslongitude=54.279999
-gpslatituderef=N
-gpslatitude=14.700000
c:\test\IMG_48.jpg
-execute


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

jean

I already tried with '='
The result is:

Error: File not found - E

jean

Phil Harvey

There should be no separate "E" in the args file.  I think you are using an old .args file.  Try the one I posted.

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

jean

In fact i am writing to the .args dynamically.
I write
-gpslongituderef=
then a carriage return \n
then N + \n
etc

Phil Harvey

Yes.  But there should be no carriage return after the = sign.

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

jean

Thank you Phil, it works now.
I did not find that tip in the doc  :(
Thank you for Exiftool !
jean