Heya everyone, In this video we learnt how we can create one Image profile system in discord.py
Base template image and backgrounds-
https://github.com/Navneety007/Profie...
You can find the video for basics of PIL/pillow here-
• Image Manipulation with Python
circle command-
def circle(pfp,size = (215,215)):
pfp = pfp.resize(size, Image.ANTIALIAS).convert("RGBA")
bigsize = (pfp.size[0] * 3, pfp.size[1] * 3)
mask = Image.new('L', bigsize, 0)
draw = ImageDraw.Draw(mask)
draw.ellipse((0, 0) + bigsize, fill=255)
mask = mask.resize(pfp.size, Image.ANTIALIAS)
mask = ImageChops.darker(mask, pfp.split()[-1])
pfp.putalpha(mask)
return pfp
Check out the full playlist-
• Discord Bot with Python
For any queries -
Either comment in the section below(which is not dead like me!!)
Contact me on my mail - [email protected]
Join my Discord Server - / discord
See our Profile on LinkedIn - / codestacks7
Checkout our Quora page - https://www.quora.com/q/codestacks
--Navneet
#profile command #discord.py
#pythontutorials #pythonforbeginners #pythonprogramming #pythongaming #pythonfullcourse #pythonprojects #pythonsnake #pythontutorialsforbeginners #pythoninterviewquestions #CodeStacks #PythonforBeginners #PythonComputerVision #PythonNLP #PythonSpeechRecognition #PythonTkinter #PythonGUI #PythonTurtle #PythonGames #PythonDataScience #Numpy #Pandas #MatplotLib