Extract a GPS track (as .gpx) from a series of jpg photos I have a bunch of .jpg photos containing GPS information. What is the easiest way to extract the GPS information and save it into a .gpx file (or .kml, for that matter)?

I have seen this answer pointing to exiftool, which gives a readable output, but I would like to import the track into other applications (e.g. Oruxmaps or Google Maps).
Answers to this question on gis.stackexchange.com point to Windows programs, but I am looking for a usable alternative on Mac OSX.
exiftool itself can now also generate GPX files. You can download the gpx.fmt template from the exiftool website, then run
exiftool -p ./gpx.fmt *JPG &gt; output.gpx

Some useful options:

-if makes exiftool only process files with a gps tag,
-fileOrder allows processing in a forced order,
-d allows formatting the datatime string.

For example:
exiftool -if '$gpsdatetime' -fileOrder gpsdatetime -p ./gpx.fmt -d %Y-%m-%dT%H:%M:%SZ *JPG &gt; output.gpx