Badly translate text on a picture and write it over with the classic Meme font.
https://www.facebook.com/memestraduits
- Python 57.2%
- HTML 41%
- Nix 0.9%
- Dockerfile 0.9%
| .github/workflows | ||
| memes/en | ||
| resources | ||
| src | ||
| .dockerignore | ||
| .editorconfig | ||
| .env.example | ||
| .gitignore | ||
| .tuyauterie.yaml | ||
| docker-compose.yaml | ||
| Dockerfile | ||
| LICENSE | ||
| Pipfile | ||
| Pipfile.lock | ||
| README.md | ||
| renovate.json | ||
| shell.nix | ||
Traduir
Roadmap
I would be happy with these for a v1
- Get text on image
- Translate words on image
- Put translated words on the image
- Readable meme text
- Put white under text for readability
- Use a font suitable for memes (Black with white borders maybe?)
- Figure out a way to put words on the same line for readability
- Blur area under text instead of an ugly white square
- Word dictionnary
- Ability to replace some words with common words we use
- Let page admins edit the list, no manual update needed to apply changes
- Post to facebook
- Post picture on a facebook page
- Have a bank of images to post periodicaly on the page
- Maybe read DMs and send back translated memes?
This will come later, v2 maybe
- Web interface ?
- Let some users upload pics to translated them instantly
- Password-protected translation API
- Archive memes
- Keep translated memes in a user-friendly place
- Analytics
- Keep track of text on memes and user engagement
- Keep track of top posts
- Text improvement
- Figure out text rotation when words are crooked
Anglais
It translate a meme in a funny way. Write over the original images
How to make this work
You have to install pipenv and do pipenv install and then you can just
pipenv run python3 src/main.py memes/en/english-meme.png fr
Authentification with Google cloud
If you want this to work, you need to authenticate with Google cloud.
follow this linkg to generate your credentials.json
Francais (Lois 101)
sa tradui
Faire rouller la patente
Installe pipenv et fait pipenv install. Après ça, fait:
pipenv run python3 src/main.py memes/en/english-meme.png fr
Authentification avec Google cloud
Pour que ça fonctionne, il faut avoir un projet Google cloud platform actif.
En gros, suis ce lien là pour générer ton fichier credentials.json
Pour downloader le service-account.json, va ici: