in Bot2/ImageUpdate/hello_world/twitterUpdateImage.py [0:0]
def tweetImage(authent, imageProcessed):
print "tweetImage"
api = tweepy.API(authent)
destination = '/tmp/image_out.jpeg'
imageProcessed.save(destination, "JPEG", quality=80, optimize=True, progressive=True)
upload_result = api.media_upload('/tmp/image_out.jpeg')
api.update_status(status="Image updated with Ninja faces", media_ids=[upload_result.media_id_string])