Esempio n. 1
0
    def _thonk(image: WandImage):
        """
        Add the thonk hand image on top of the provided image.
        :param image:
        :return:
        """
        with WandImage(filename="assets/thonk_hand.png") as thonk:
            with image:
                thonk.resize(image.width, image.height)
                image.composite(thonk, 0, 0)
                ret = image.to_discord_file("thonk.png")
                b_io = image.to_bytes_io()

        return ret, b_io
Esempio n. 2
0
    def _wasted(image: WandImage):
        """
        Add the wasted image on top of the provided image.
        :param image:
        :return:
        """
        with WandImage(filename="assets/wasted.png") as wasted:
            with image:
                wasted.resize(image.width, image.height)
                image.composite(wasted, 0, 0)
                ret = image.to_discord_file("wasted.png")
                b_io = image.to_bytes_io()

        return ret, b_io