def pillow_process(args, is_rave, lines_in_text, timestamp):
    with Image.open('bot/cogs/memes_cog/assets/crab.gif') as im:
        fnt = ImageFont.truetype('bot/cogs/memes_cog/assets/LemonMilk.otf', 11)
        frames = []
        for frame in ImageSequence.Iterator(im):
            d = ImageDraw.Draw(frame)
            (w, h) = d.textsize(args, fnt)
            d.text((((im.size[0] / 2) - (w / 2)), ((im.size[1] - h) - (5 * lines_in_text))), args, font=fnt, align='center', stroke_width=bool(is_rave), stroke_fill=Colors.ClemsonOrange, spacing=6)
            del d
            b = io.BytesIO()
            frame.save(b, format='GIF')
            frame = Image.open(b)
            frames.append(frame)
        frames[0].save(f'bot/cogs/memes_cog/assets/out_{timestamp}.gif', save_all=True, append_images=frames[1:])
def pillow_process(args, is_rave, lines_in_text, timestamp):
    with Image.open('bot/cogs/memes_cog/assets/crab.gif') as im:
        fnt = ImageFont.truetype('bot/cogs/memes_cog/assets/LemonMilk.otf', 11)
        frames = []
        for frame in ImageSequence.Iterator(im):
            d = ImageDraw.Draw(frame)
            (w, h) = d.textsize(args, fnt)
            d.text((((im.size[0] / 2) - (w / 2)), ((im.size[1] - h) - (5 * lines_in_text))), args, font=fnt, align='center', stroke_width=bool(is_rave), stroke_fill=Colors.ClemsonOrange, spacing=6)
            del d
            b = io.BytesIO()
            frame.save(b, format='GIF')
            frame = Image.open(b)
            frames.append(frame)
        frames[0].save(f'bot/cogs/memes_cog/assets/out_{timestamp}.gif', save_all=True, append_images=frames[1:])