I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-03-19 09:05:22.133121-07 by thenorb
GPS: Create XMP from EXIF
Hi,
when geotagging an image Exiftool writes GPS data to both EXIF and XMP headers. Now I've got some photos with GPS data only in their EXIF headers. So I would like to copy this data into the XMP part like Exiftool would do it when it would have been used for tagging.

I tried
exiftool "-XMP:all<EXIF:all" <file>
but it wrote invalid data (longitude was set to "east" instead of "west") and did not create all headers which were created by the geotagging feature.

Any ideas?

Thanks,

Norb
Direct Responses: 12574 | Write a response
Posted on 2010-03-19 09:10:35.110144-07 by exiftool in response to 12571
Re: GPS: Create XMP from EXIF
Hi Norb,

Yes. The -@ option may be used with the "gps2xmp.args" file (included in the full distribution) to do exactly what you want.

# # File: gps2xmp.args # # Description: Argument file for copying GPS information from EXIF to XMP # # Usage: exiftool -tagsFromFile SRCFILE -@ gps2xmp.args DSTFILE # # Revisions: 2009/01/09 - P. Harvey Created # # Notes: Most of the GPS tags are copied by the first argument, but # the XMP GPS coordinates and date/time tags are composites of # more than one EXIF GPS tag, so they are handled separately. # -XMP:all < GPS:all -XMP:GPSLatitude < Composite:GPSLatitude -XMP:GPSLongitude < Composite:GPSLongitude -XMP:GPSDateTime < Composite:GPSDateTime # end

- Phil
Direct Responses: 12575 | Write a response
Posted on 2010-03-19 09:36:38.274913-07 by thenorb in response to 12574
Re: GPS: Create XMP from EXIF
Works perfectly. Thanks Phil, your help is much appreciated!
Direct Responses: Write a response