Images¶
ImageFeatures¶
- class asyncdagpi.ImageFeatures(value: str, description: str)[source]¶
Base ImageFatures that asyncdagpi has
- classmethod from_path(path: str) asyncdagpi.image_features.IF [source]¶
Construct an Image Feature from it’s path.
- classmethod mirror() asyncdagpi.image_features.IF [source]¶
Flip image horizontally (left to right).
- classmethod flip() asyncdagpi.image_features.IF [source]¶
Flip the image vertically (top to bottom).
- classmethod colors() asyncdagpi.image_features.IF [source]¶
Analyse and get an Image’s Color Top 5 Colors
- classmethod america() asyncdagpi.image_features.IF [source]¶
The waving american flag on an image.gif
- classmethod communism() asyncdagpi.image_features.IF [source]¶
Glory of the soviet Union on an image.gif
- classmethod five_guys_one_girl() asyncdagpi.image_features.IF [source]¶
No I have never heard of this meme. Takes in 2 Image URL. Needs:
url
url2
- classmethod slap() asyncdagpi.image_features.IF [source]¶
Have someone slap someone. Needs:
url
url2
- classmethod why_are_you_gay() asyncdagpi.image_features.IF [source]¶
The infamous Why are you gay. Takes in 2 Image URL. Needs:
url
url2
- classmethod sobel() asyncdagpi.image_features.IF [source]¶
Cool SOBEL filter for Images. Only png’s.
- classmethod triangle() asyncdagpi.image_features.IF [source]¶
Cool triangle edge detection for Images. Only png’s.
- classmethod obama() asyncdagpi.image_features.IF [source]¶
The obama meme of someone awarding themselves.
- classmethod gay() asyncdagpi.image_features.IF [source]¶
represent! Pastes a pride flag on an image.
- classmethod pride() asyncdagpi.image_features.IF [source]¶
Pride flag overlay Needs:
- flag (one of these flags):
asexual
bisexual
gay
genderfluid
genderqueer
intersex
lesbian
nonbinary
progress
pan
trans
agender
ally
polysexual
- classmethod charcoal() asyncdagpi.image_features.IF [source]¶
Turns an Image into a charcoal sketch.
- classmethod polaroid() asyncdagpi.image_features.IF [source]¶
Frames an Image like a printed polaroid.
- classmethod neon() asyncdagpi.image_features.IF [source]¶
A cool multicolored glowing neon sign from an image.
- classmethod burn() asyncdagpi.image_features.IF [source]¶
Burn an image untill there’s molten remains.
- classmethod captcha() asyncdagpi.image_features.IF [source]¶
Creates a realistic Captcha Needs:
text
image
- classmethod thought_image() asyncdagpi.image_features.IF [source]¶
Wraps Image and Text into a thought Needs:
text
image
- classmethod tweet() asyncdagpi.image_features.IF [source]¶
Generates an accurate fake tweet Needs:
text
image
username
- classmethod discord() asyncdagpi.image_features.IF [source]¶
Generated a realistic Discord Message Needs:
text
image
username
dark (boolean) default is true
- classmethod youtube() asyncdagpi.image_features.IF [source]¶
Generated a realistic Yutube comment Needs:
text
image
username
dark (boolean) default is true
- classmethod retro_meme() asyncdagpi.image_features.IF [source]¶
old 2012 advice animals style meme Needs:
top_text
bottom_text
image
- classmethod motiv() asyncdagpi.image_features.IF [source]¶
old 2012 style Motiv memes Needs:
top_text
bottom_text
image
- classmethod modern_meme() asyncdagpi.image_features.IF [source]¶
Mordern meme with text scaling Needs:
text
image
- classmethod mosiac() asyncdagpi.image_features.IF [source]¶
Turn an image into a roman mosiac Needs:
image
pixels
Image Response¶
- class asyncdagpi.Image(byt: bytes, image_format: str, process_time: str, original_url: str)[source]¶
An AsyncDagpi Image Returned This has special properties that can enhance the experience.
Attributes
- image:
io.BytesIO
BytesIO object with Image
- format:
str
String containing Image Format Either PNG or GIF
- process_time:
str
String for Time Taken by API to process Request
- original_image:
str
URL for the image passed to the API
- image: