This is a proof of concept for an API for adding text to gif images. Think of it as a mix between giphy and meme generator.
- Python 3
- FastAPI
- moviepy
- Docker
- A Giphy API key: https://developers.giphy.com/
git clone https://github.com/m3brown/giffer
cd giffer
echo "GIPHY_API_KEY=$yourkey" > .env
docker-compose build
docker-compose up
- After launching the app, you can visit the interactive docs at localhost:8000/docs
- Create a gif by submitting a POST with JSON data.
- At the least, you'll need
text
along with one ofgif
orsearch
- text: the text to put on the gif
- gif: URL of the gif image to use
- search: the search phrase to query from giphy
- At the least, you'll need
For example:
{"text": "time for work", "gif": "http://25.media.tumblr.com/tumblr_m810e8Cbd41ql4mgjo1_500.gif"}
{"text": "hey guys", "search": "elf wave"}