diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000000000000000000000000000000000000..dc480f8082f8b6ffc2652502fc28a010b288b75d --- /dev/null +++ b/Readme.md @@ -0,0 +1,23 @@ +# Text 2 Image + +This is a simple API endpoint for generating Images from the provided text. It's special optimized to work with [OpenEPaperLink](https://github.com/jjwbruijn/OpenEPaperLink). + +## Example POST Body + +```json +{ + "text": [ + { + "text": "Hello World", + "color": 1 // 0 = white, 1 = black, 2 = red + }, + { + "text": "Hello World", + "color": 2 // 0 = white, 1 = black, 2 = red + } + ], + "fontSize": 12, + "width": 296, + "height": 128 +} +```