diff --git a/osxphotos/templates/xmp_sidecar.mako b/osxphotos/templates/xmp_sidecar.mako index f34c1b9b..3bc564ee 100644 --- a/osxphotos/templates/xmp_sidecar.mako +++ b/osxphotos/templates/xmp_sidecar.mako @@ -81,10 +81,8 @@ <%def name="gps_info(latitude, longitude)"> % if latitude is not None and longitude is not None: - ${"E" if longitude >= 0 else "W"} - ${abs(longitude)} - ${abs(latitude)} - ${"N" if latitude >= 0 else "S"} + ${int(abs(longitude))},${(abs(longitude) % 1) * 60}${"E" if longitude >= 0 else "W"} + ${int(abs(latitude))},${(abs(latitude) % 1) * 60}${"N" if latitude >= 0 else "S"} % endif