Skip to content
Snippets Groups Projects
Readme.md 530 B
Newer Older
Jonas Leder's avatar
Jonas Leder committed
# 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
}
```