

Return source = BytesIO( image) # file-like container to hold the emoji in memory dest = BytesIO() # container to store the petpet gif in memory petpetgif. Hit the upload button to choose files from your device, otherwise paste a URL if your media asset is hosted on a website.
#Petpet gif maker series
reply( 'Please use a custom emoji or tag a member to petpet their avatar.') To make a GIF from a video file on your device or a video URL, use 'Video to GIF', otherwise use 'Images to GIF' to create a GIF animation from a series of still images. The avatar will bounce up and down to simulate the petting. read() # retrieve the image bytes else:Īwait ctx. Given a square avatar, generate a petting gif (known as petpet or pet the). To make a GIF from a video file on your device or a video URL, use 'Video to GIF', otherwise use 'Images to GIF' to create a GIF animation from a series of still images. read() # retrieve the image bytes elif type( image) = discord.

command() async def pet( ctx, image: Optional]): ext import commands from dotenv import load_dotenv from io import BytesIO from typing import Union, Optional from petpetgif import petpet as petpetgif load_dotenv()Ĭlient = commands. This must be a positive number.Import os import discord from discord. - The scale to apply for the input image to use for the exported gif, defaults to 1.0.- The frame rate to use for the exported gif, defaults to 15.This takes in a mention or the user's id. When the user argument is not used it will pet any images uploaded with a message. There are two extra optional variables for the image export FPS and scale. The exported gif to be pet will be an overlaid hand petting the image. enable to move your image with mouse/touch/keyboard in the preview. ps: save the exported gif if you want to share it.
#Petpet gif maker generator

Our mission is to enable digital storytelling. This command sets a new command prefix for this server. Kapwing is an online image, video, and GIF editing platform.On the other hand, if command_name is present it will show info for that command. Design your own cartoon pets using our one of a kind pet avatar maker Share your creations online, or add them to all sorts of customizable merchandise. When command_name isn't present it will display info on the bot and list its commands. The prefix for this bot is customizable with the prefix command. To generate a pet-pet GIF use the pet command. PetPet is a fairly simple Discord Bot that can generate pet-pet GIFs for images and user profiles. zhenxunpluginpetpet / utils.
