diff --git a/imgurpython/client.py b/imgurpython/client.py index 9c41ea6..de4ce5c 100644 --- a/imgurpython/client.py +++ b/imgurpython/client.py @@ -583,6 +583,9 @@ def upload_from_path(self, path, config=None, anon=True): with open(path, 'rb') as fd: self.upload(fd, config, anon) + def upload_from_image(self, image, config=None, anon=True): + return self.upload(image, config, anon) + def upload(self, fd, config=None, anon=True): if not config: config = dict()