https://github.com/red5d/memejson
A schema and implementation examples for a method of generating meme images from a JSON structure.
https://github.com/red5d/memejson
Last synced: 4 months ago
JSON representation
A schema and implementation examples for a method of generating meme images from a JSON structure.
- Host: GitHub
- URL: https://github.com/red5d/memejson
- Owner: Red5d
- License: gpl-3.0
- Created: 2023-10-08T01:23:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-26T23:25:22.000Z (over 2 years ago)
- Last Synced: 2025-03-02T18:33:55.021Z (over 1 year ago)
- Language: HTML
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Meme JSON
A schema and implementation examples for a method of generating meme images from a JSON structure.
Try out the HTML/JS implementation here: https://red5d.github.io/memejson/
Files:
* meme-schema.json - JSON Schema for defining image elements
* example.json - Example JSON structure that implements the schema
* index.html - Web UI for building or viewing images defined by the JSON structure
* meme.py - Python Flask implementation that receives a JSON structure via HTTP POST and returns the corresponding image.
Features:
* Images can be created using a source image url or base64 data uri for the background
* Top/Bottom text can be set along with the font/color/size and top/bottom padding for the text
* Free text can be added which can be placed anywhere on the background image using specified XY coordinates.
* Meme "images" distributed in this JSON format can be easily modified and the background or text swapped out by changing a value
* The "images" can also be easily analyzed programmically since it's just JSON data.