Projet

Général

Profil

Bug #10905

géoloc : ne pas planter sur une image qui n'a pas de données exif

Ajouté par Frédéric Péters il y a presque 8 ans. Mis à jour il y a presque 8 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
Début:
12 mai 2016
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Exception:
  type = '<type 'exceptions.AttributeError'>', value = '_getexif'

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 632, in __getattr__
   630             new['version'] = 3
   631             return new
>  632         raise AttributeError(name)
   633
   634     def __getstate__(self):

  locals:
     self = <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=189x189 at 0x7F1E54111ED0>
     name = '_getexif'

  File "/home/fred/src/eo/wcs/wcs/wf/geolocate.py", line 159, in geolocate_photo_variable
   157             return
   158
>  159         exif_data = image._getexif()
   160         if exif_data:
   161             gps_info = exif_data.get(0x8825)

Fichiers

Révisions associées

Révision bde59ead (diff)
Ajouté par Frédéric Péters il y a presque 8 ans

geolocate: don't fail on images without EXIF data (#10905)

Historique

#1

Mis à jour par Frédéric Péters il y a presque 8 ans

#2

Mis à jour par Thomas Noël il y a presque 8 ans

Ack

#3

Mis à jour par Frédéric Péters il y a presque 8 ans

  • Statut changé de En cours à Résolu (à déployer)
commit bde59ead5a85f036b1aefdc66711d91b5231f601
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Thu May 12 17:39:49 2016 +0200

    geolocate: don't fail on images without EXIF data (#10905)
#4

Mis à jour par Thomas Noël il y a presque 8 ans

  • Version cible mis à v1.43
#5

Mis à jour par Frédéric Péters il y a presque 8 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF