Beispiel #1
0
	def setComment(self, filePath, comment):
		"""
		Set comment info to the image specified
		filePath: full path of the image file 
		comment: contains comment tag info
		"""
		metadata = ImageMetadata(filePath)
		metadata.read()
		try:
		    metadata.comment = comment
		    metadata.write()
		    return True
		except Exception as e:
		    return False