예제 #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 {}
예제 #2
0
파일: models.py 프로젝트: jockeryn/Jombis
 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 {}
예제 #3
0
파일: models.py 프로젝트: gardarh/petit
	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 {}