Example #1
0
 def EXIF(self):
     try:
         return EXIF.process_file(open(self.image.path, 'rb'))
     except:
         try:
             return EXIF.process_file(open(self.image.path, 'rb'), details=False)
         except:
             return {}
Example #2
0
 def EXIF(self):
     try:
         return EXIF.process_file(open(self.image.path, 'rb'))
     except:
         try:
             return EXIF.process_file(open(self.image.path, 'rb'), details=False)
         except:
             return {}
Example #3
0
	def EXIF(self):
		try:
			return EXIF.process_file(open(self.image.path, 'rb'))
		except Exception, e:
			print "EXIF EXP 1",str(e)
			try:
				return EXIF.process_file(open(self.image.path, 'rb'), details=False)
			except Exception, ee:
				print "EXIF EXP 2",str(ee)
				return {}