Skip to content
Snippets Groups Projects
Select Git revision
  • master
1 result

text2img

  • Clone with SSH
  • Clone with HTTPS
  • Jonas Leder's avatar
    Jonas Leder authored
    Update python Docker tag to v3.13.6
    
    See merge request !21
    c0072f59
    History

    Text 2 Image

    This is a simple API endpoint for generating Images from the provided text. It's special optimized to work with OpenEPaperLink.

    Example POST Body

    {
        "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
    }