parameters: (filename)
return_statement: return hashlib.sha256(data).hexdigest()
docstring: Return hash of RGBA contents of image
docstring_summary: Return hash of RGBA contents of image
docstring_tokens: Return hash of RGBA contents of image
function: def content_hash(filename):
      '''Return hash of RGBA contents of image'''
      i = Image.open(filename)
      i = i.convert('RGBA')
      data = i.tobytes()
      return hashlib.sha256(data).hexdigest()
function_tokens: def content_hash ( filename ) : i = Image . open ( filename ) i = i . convert ( 'RGBA' ) data = i . tobytes ( ) return hashlib . sha256 ( data ) . hexdigest ( )