Skip to content
This repository has been archived by the owner on Sep 18, 2019. It is now read-only.

Commit

Permalink
Circlise works
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Wang committed May 6, 2017
1 parent 2d0bf57 commit 3719338
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion restapi/utils/circlise.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ def getProfilePic(userID):

# Save the file as a base 64 string.
buffer = BytesIO()
im.save(buffer, format="JPEG")
im.save(buffer, format="PNG")
img_str = base64.b64encode(buffer.getvalue())

return img_str


print(getProfilePic(100000248571265))

0 comments on commit 3719338

Please sign in to comment.