$git clone https://github.com/koerners/omm-meme-gen.git
$cd omm-meme-gen/
$docker-compose up
Navigate to localhost:80/
To start the backend refer to the README in the backend folder.
To start the frontend refer to the README in the frontend folder.
route: http://127.0.0.1:8000/createMeme/
parameters:
Key | example value | default value |
---|---|---|
templateName | bernieAsking | None and returns status 400 |
topText | text on top a bit longer | "" |
bottomText | for your bottom text | "" |
fontSize | 25 | 30 |
colorHex | ff8cff | #000000 |
bold | True | False |
italic | false | False |
underline | true | False |
response content_type = 'image/png':
example:
route: http://127.0.0.1:8000/createMeme/
parameters:
Key | example value | default value |
---|---|---|
templateName | bernieAsking | None and returns status 400 |
topText | text on top a bit longer | "" |
bottomText | for your bottom text | "" |
otherTexts | [{"x": 20, "y":200, "text":'mein extra text'}, {'x': 200, 'y': 110, 'text': 'noch anderer text'}] | [] |
fontSize | 25 | 30 |
colorHex | ff8cff | #000000 |
bold | True | False |
italic | false | False |
underline | true | False |
response content_type = 'image/png':
example:
route: http://127.0.0.1:8000/createMemes/
parameters:
Key | example value | default value |
---|---|---|
templateName | bernieAsking | None and returns status 400 |
textLists | [[{"x": 20, "y":200, "text":'mein extra text'}, {'x': 200, 'y': 110, 'text': 'noch anderer text'}], [{'x':10,'y':10,'text':'was los'}, {'bottomText': 'for your bottom text'}]] | [], returns status 400 if malformed |
fontSize | 25 | 30 |
colorHex | ff8cff | #000000 |
bold | True | False |
italic | false | False |
underline | true | False |
response content_type = 'application/zip':
response: zip containing images named meme0.png, meme1.png, ...