How to add GPS data to a JPEG file (Exif)

Discussion in 'Digital SLR' started by PGPS, Jun 8, 2007.

  1. PGPS

    PGPS Guest

    I am trying to do geotag my pictures. The problem is that all the
    solutions have too much of GUI and thereby slow for my needs. I have
    tried using Picasa/Google Earth and WWMX location stamper, both of
    which are slow for my purposes. I have also tried checking exiftool,
    which doesn't really give out a good example for me.

    1. I want to do a command line operation to add latitude/longitude
    information to my files. something like

    exiftool.exe -77.10 +34.20 c:\Pictures\*.jpg

    2. I also use irfanview, and I would love to see something which
    incorporates the above procedure into it. ie, add the same location to
    multiple files I select.

    Would someone help me to geotag my pictures using exiftool or any
    other command line tool?

    PGPS, Jun 8, 2007
    1. Advertisements

  2. PGPS

    John Bean Guest

    Ok, the easiest way to use exiftool to do it is to edit the
    individual GPS tags directly. The tags used are:

    GPSlatitude (always positive)
    GPSlatitudeRef (N or S)
    GPSlongitude (always positive)
    GPSlongitudeRef (E or W)

    Case isn't important in tag names.

    So using the values you gave above the command line (without
    the line wrap of course) becomes:

    exiftool -gpslatitude=77.1 -gpslatituderef=S
    -gpslongitude=34.2 -gpslongituderef=E c:\pictures\*.jpg

    By default exiftool will rename your originals and write new
    modified copies, but if you want to save to the originals
    you can add the "-overwrite_original" directive to the start
    of the command line.

    As always test on a few copies before you use it on your
    images, and always have backups available before doing any
    John Bean, Jun 8, 2007
    1. Advertisements

  3. PGPS

    John Bean Guest

    Or... ;-)

    An even easier method is to use Google Earth to geotag *one*
    "template" image. Let's assume this file is called
    "template.jpg" and it's in the root of C:.

    A simple line like:

    exiftool -overwrite_original -tagsfromfile c:\template.jpg
    -gps:all c:\pictures\*.jpg

    would copy the GPS tags from the "template" file to all the
    JPEGs in the target directory.

    Probably easier than the first method.
    John Bean, Jun 8, 2007
  4. PGPS

    Ron Hunter Guest

    You might email Irfan (writer of Irfanview) about this idea. He is
    still actively developing this software, and is very accessible.
    Ron Hunter, Jun 10, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.