An image manipulation module for Astrow.
Project description
Install
pip install astrow-images
Usage
Memes:
from astrow_images import memes
# for a discord bot
@bot.command()
async def drake(ctx, first, second):
await ctx.reply(file=discord.File(memes.drake(first, second)))
# it's so easy to use
Effects:
from astrow_images import effects
@bot.command()
async def blur(ctx, user: discord.User):
await ctx.reply(file=discord.File(effects.blur(await user.avatar.read())))
# 1 line go brr
Advanced Usage (recommended):
from astrow_images import effects
from functools import partial
@bot.command()
async def wiggle(ctx, user: discord.User):
await ctx.reply(file=discord.File(
await bot.loop.run_in_executor(None, partial(effects.wiggle, img=await user.avatar.read()))
))
I won't be making docs for these, refer to the source code or ask in the support server if you have any questions
Meme templates
drake
,disappointed
,flex_tape
,bernie
,panik
,doge
,my_heart
Effects
blur
,flip
,rotate
,enhance
,ascii
,blend
,wiggle
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
astrow-images-2.0.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for astrow_images-2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a598b273713a5d7050c39a6cfdbdca461223c09b785dd0f5a551604db611754 |
|
MD5 | e741a691cac9011d218b55e4a27587e3 |
|
BLAKE2b-256 | 348ac7cee7683c21aee896d6db4e3b22bc3d416dc114418cf277782ce4e23dbe |