Source code for asyncdagpi.image_features

[docs]class ImageFeatures: """ Base ImageFatures that asyncdagpi has """ def __init__(self, value: str, description: str): """ Initialise the dagpi Image feature """ self.value = value self.description = description def __str__(self) -> str: """ Get a string of the feature :return: :class:`string` """ return self.value.replace("/", "") def __repr__(self) -> str: """ get a string describing the object :return: :class:`str` """ return "<asyncdagpi.ImageFeature feature={} >".format( self.value.replace("/", ""))
[docs] @classmethod def pixel(cls): """ Pixelate an Image """ return cls("/pixel/", "Pixelate an Image")
[docs] @classmethod def colors(cls): """ Analyse and get an Image's Color Top 5 Colors """ return cls("/colors/", "Analyse and get an Image's Color Top 5 Colors")
[docs] @classmethod def wanted(cls): """ Get a wanted poster of an Image. """ return cls("/wanted/", "Get a wanted poster of an Image")
[docs] @classmethod def triggered(cls): """ Get a triggered Image gif """ return cls("/triggered/", "Get a triggered Image gif")
[docs] @classmethod def america(cls): """ The waving american flag on an image.gif """ return cls("/america/", "The waving american flag on an image.gif")
[docs] @classmethod def communism(cls): """ Glory of the soviet Union on an image.gif """ return cls("/communism/", "Glory of the soviet Union on an image.gif")
[docs] @classmethod def bomb(cls): """ Kaboom """ return cls("/bomb/", "Kaboom")
[docs] @classmethod def wasted(cls): """ GTA V Wasted screen. """ return cls("/wasted/", "GTA V Wasted screen")
[docs] @classmethod def five_guys_one_girl(cls): """ No I have never heard of this meme. Takes in 2 Image URL. Needs: - url - url2 """ return cls("/5g1g/", "No I have never heard of this meme. Takes in 2 Image URL")
[docs] @classmethod def slap(cls): """ Have someone slap someone. Needs: - url - url2 """ return cls("/slap/", "Have someone slap someone.")
[docs] @classmethod def why_are_you_gay(cls): """ The infamous Why are you gay. Takes in 2 Image URL. Needs: - url - url2 """ return cls("/whyareyougay/", "The infamous Why are you gay. Takes in 2 Image URL")
[docs] @classmethod def invert(cls): """ Invert an Image. """ return cls("/invert/", "Invert an Image")
[docs] @classmethod def sobel(cls): """ Cool SOBEL filter for Images. Only png's. """ return cls("/sobel/", "Cool SOBEL filter for Images.")
[docs] @classmethod def triangle(cls): """ Cool triangle edge detection for Images. Only png's. """ return cls("/triangle/", "Cool triangle edge detection for Images.")
[docs] @classmethod def hog(cls): """ Histogram of Oriented Gradients. """ return cls("/hog/", "Histogram of Oriented Gradients")
[docs] @classmethod def blur(cls): """ Blurs an entire Image. """ return cls("/blur/", "Blurs an entire Image")
[docs] @classmethod def rgb(cls): """ Get RGB information from an image. """ return cls("/rgb/", "Get RGB information from an image")
[docs] @classmethod def angel(cls): """ Make an Image Angelic. """ return cls("/angel/", "Make an Image angelic")
[docs] @classmethod def satan(cls): """ Make an Image the devil. """ return cls("/satan/", "Make an Image the devil")
[docs] @classmethod def hitler(cls): """ Make an Image as bad as hitler. """ return cls("/hitler/", "Make an Image as bad as hitler")
[docs] @classmethod def obama(cls): """ The obama meme of someone awarding themselves. """ return cls("/obama/", "The obama meme of someone awarding themselves")
[docs] @classmethod def bad(cls): """ This image is bad. """ return cls("/bad/", "This image is bad")
[docs] @classmethod def sith(cls): """ Laughs in Sithlord """ return cls("/sith/", "Laughs in Sithlord")
[docs] @classmethod def jail(cls): """ Put an Image behind bars. """ return cls("/jail/", "Put an Image behind bars")
[docs] @classmethod def fedora(cls): """ Tips. Fedora """ return cls("/fedora/", "Tips fedora")
[docs] @classmethod def delete(cls): """ Delete some trash """ return cls("/delete/", "Delete some trash")
[docs] @classmethod def shatter(cls): """ Broken like glass """ return cls("/shatter/", "Broken like glass")
[docs] @classmethod def gay(cls): """ represent! Pastes a pride flag on an image. """ return cls("/gay/", "represent! Pastes a pride flag on an image")
[docs] @classmethod def pride(cls): """ Pride flag overlay Needs: - flag (one of these flags): * asexual * bisexual * gay * genderfluid * genderqueer * intersex * lesbian * nonbinary * progress * pan * trans * agender * ally * polysexual """ return cls("/pride/", "Pride flag overlay")
[docs] @classmethod def trash(cls): """ Makes an Image trash. """ return cls("/trash/", "Makes an Image trash")
[docs] @classmethod def deepfry(cls): """ Deepfries an Image. """ return cls("/deepfry/", "Deepfries an Image")
[docs] @classmethod def ascii(cls): """ Turns an Image into a ascii-fied image. """ return cls("/ascii/", "Turns an Image into a ascii-fied image")
[docs] @classmethod def charcoal(cls): """ Turns an Image into a charcoal sketch. """ return cls("/charcoal/", "Turns an Image into a charcoal sketch")
[docs] @classmethod def poster(cls): """ Posterizes an image. """ return cls("/poster/", "Posterizes an image")
[docs] @classmethod def sepia(cls): """ Makes an image sepia tone. """ return cls("/sepia/", "Makes an image sepia tone")
[docs] @classmethod def polaroid(cls): """ Frames an Image like a printed polaroid. """ return cls("/polaroid/", "Frames an Image like a printed polaroid")
[docs] @classmethod def glitch(cls): """ *Cool Glitched image* """ return cls("/glitch/", "*Cool Glitched image*")
[docs] @classmethod def swirl(cls): """ Swirls the center of Image. """ return cls("/swirl/", "Swirls the center of Image")
[docs] @classmethod def paint(cls): """ Turns an Image into an oil painting. """ return cls("/paint/", "Turns an Image into an oil painting")
[docs] @classmethod def sketch(cls): """ How an artist would create an image. """ return cls("/sketch/", "How an artist would create an image.")
[docs] @classmethod def spin(cls): """ the gif goes round and round. """ return cls("/spin/", "the gif goes round and round")
[docs] @classmethod def dissolve(cls): """ Thanos snapped and back. """ return cls("/dissolve/", "Thanos snapped and back.")
[docs] @classmethod def neon(cls): """ A cool multicolored glowing neon sign from an image. """ return cls("/neon/", "A cool multicolored glowing neon sign form an image.")
[docs] @classmethod def petpet(cls): """ Pet Pet Pet. """ return cls("/petpet/", "Pet Pet Pet.")
[docs] @classmethod def comic(cls): """ classic black and white comic. """ return cls("/comic/", "Classic black and white commic.")
[docs] @classmethod def burn(cls): """ Burn an image untill there's molten remains. """ return cls("/burn/", "Burn an image untill there's molten remains.")
[docs] @classmethod def freeze(cls): """ Get blasted by Mr.Freeze from batman. """ return cls("/freeze/", "Get blasted by Mr.Freeze from batman.")
[docs] @classmethod def earth(cls): """ Become one with Rock. """ return cls("/earth/", "Become one with rock.")
[docs] @classmethod def night(cls): """ Turns day into night on an Image. """ return cls("/night/", "Turns day into night on an Image")
[docs] @classmethod def magik(cls): """ Magik an Image """ return cls("/magik/", "Magik an Image")
[docs] @classmethod def stringify(cls): """ Stringify an Image """ return cls("/stringify/", "Stringify an Image")
[docs] @classmethod def rainbow(cls): """ Rainbow light effect on image """ return cls("/rainbow/", "Rainbow light effect on image")
[docs] @classmethod def solar(cls): """ Solarizes an Image. """ return cls("/solar/", "Solarizes an Image")
[docs] @classmethod def bonk(cls): """ Bonk Someone """ return cls("/bonk/", "Bonk Someone")
[docs] @classmethod def captcha(cls): """ Creates a realistic Captcha Needs: - text - image """ return cls("/captcha/", "Creates a realistic Captcha")
[docs] @classmethod def thought_image(cls): """ Wraps Image and Text into a thought Needs: - text - image """ return cls("/thoughtimage/", "Wraps Image and Text into a thought")
[docs] @classmethod def tweet(cls): """ Generates an accurate fake tweet Needs: - text - image - username """ return cls("/tweet/", "Generates an accurate fake tweet")
[docs] @classmethod def discord(cls): """ Generated a realistic Discord Message Needs: - text - image - username - dark (boolean) default is true """ return cls("/discord/", "Generated a realistic Discord Message")
[docs] @classmethod def youtube(cls): """ Generated a realistic Yutube comment Needs: - text - image - username - dark (boolean) default is true """ return cls("/yt/", "Generated a realistic Yutube comment")
[docs] @classmethod def retro_meme(cls): """ old 2012 advice animals style meme Needs: - top_text - bottom_text - image """ return cls("/retromeme/", "Generated a realistic Discord Message")
[docs] @classmethod def motiv(cls): """ old 2012 style Motiv memes Needs: - top_text - bottom_text - image """ return cls("/motiv/", "old 2012 style Motiv memes")
[docs] @classmethod def modern_meme(cls): """ Mordern meme with text scaling Needs: - text - image """ return cls("/modernmeme/", "Modern New meme style meme")
[docs] @classmethod def mosiac(cls): """ Turn an image into a roman mosiac Needs: - image - pixels """ return cls("/mosiac/", "Turn an image into a roman mosiac")
[docs] @classmethod def cube(cls): """ Turn an image into a cube Needs: - image """ return cls("/cube/", "Turn an image into a cube")