geotag action crash when trying to write the Exif_GPSInfo_GPSAltitudeRef tag
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
phatch (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
source package:
**************
phatch-cli
ubuntu release:
**************
Description: Ubuntu 14.04 LTS
Release: 14.04
version:
*******
phatch:
Instalados: 0.2.7.1-3
Candidato: 0.2.7.1-3
Tabla de versión:
*** 0.2.7.1-3 0
500 http://
100 /var/lib/
When trying to assing goetags to photos using a GARMIN GPX file y get this error for every photo (spanish version, sorry) and no geotag is modified:
Error 0:No se puede aplicar la acción Geoetiqueta a la imagen 'photo.JPG' en la carpeta:
/Testing/
u'Imposible escribir marca "Exif_GPSInfo_
Action:{'fields': {'GPS Data (gpx)': u'/GPSTrack.gpx',
'GPS Report (csv)': ' ',
'Time Shift (seconds)': u'60',
'label': 'Geotag'}
Traceback (most recent call last):
File "/usr/share/
photo = action.apply(photo, read_only_settings, cache)
File "/usr/share/
info[
File "/usr/share/
% (_('Impossible to write tag "%s"') % tag, message))
KeyError: u'Imposible escribir marca "Exif_GPSInfo_
*
The problem is that 'Exif_GPSInfo_
-------
in GPS.py at line 203
latR = 'N'
lonR = 'E'
eleR = 0
if lat < 0:
lat = -lat
latR = 'S'
if lon < 0:
lon = -lon
lonR = 'W'
sele = "%6.1f" % (ele)
if ele < 0:
ele = -ele
eleR = 1
slat = "%02d.%02d'" '%02d"%s' % (d(lat), m(lat), s(lat), latR)
slon = "%02d.%02d'" '%02d"%s' % (d(lon), m(lon), s(lon), lonR)
if report:
+ "\n")
# get Rational number for ele
# don't know why r(ele) is causing trouble!
# it might be that the denominator is overflowing 32 bits!
# and this would also import lat and lon
rele = pyexiv2.
# create and return the dictionary of tags to be added to the image
metadata = {}
metadata[
metadata[
-------
I have solved the problem by transforming eleR to byte with the bytes() constructor:
metadata[