我试图让图像看起来像botdankmemer
一样连接和分发,但我没有找到方法
我的代码我尝试制作有线图像
@bot.command()
async def magik(ctx, user=None):
if user == None:
user = ctx.author
asset = user.avatar_url_as(size=128)
data = BytesIO(await asset.read())
pfp = Image.open(data)
pfp = pfp.resize((500,500))
pfp.save("profilez.png")
with imwand(filename ='profilez.png') as image:
with image.clone() as wave:
wave.wave(30, 100, 'blend')
wave.save(filename ='output.png')
await ctx.send(file=discord.File("output.png"))
目前没有回答
相关问题 更多 >
编程相关推荐