An open API service indexing awesome lists of open source software.

https://github.com/daylily-informatics/github_markdown_text_colorizer

Service to return images of text where the input text can have font, font size and color set
https://github.com/daylily-informatics/github_markdown_text_colorizer

Last synced: about 1 month ago
JSON representation

Service to return images of text where the input text can have font, font size and color set

Awesome Lists containing this project

README

          

# [Text To Styled & Colorized Image Service](https://gtc.dyly.bio)
Service to return images of specified text where text color, bg color, font and font size can be configured. Images may be generated via the service, or dyanmically requested and used in `` tags. , which looks like this ``, you can generate these urls [here](https://gtc.dyly.bio).

# Quickest Start
## Demo Service
_this service has no promises re:uptime! run your own service if you require high reliability_

### [https://gtc.dyly.bio](https://gtc.dyly.bio)
* This service is running the current version of this repo. You may create and download images, or experiment with embedding them.

fglass

#### Embedding
> Enter values via the UI and get your embeddable link.
##### UI
fgembed

##### Dynamically Generated Img Using Link Generated Above

> Use in markdown ` `

Using The Link Produced Above

Changing The Link Text & Color

Change The Font, Colors, Size



... you get the idea

## xxx

# Install And Run Service Yourself (advised for dynamic use)
Likely only will run on mac or linux.

## Clone this repo
```bash
git clone git@github.com:Daylily-Informatics/github_markdown_text_colorizer.git
cd github_markdown_text_colorizer
```

## Environment
I'm a fan of conda.

```bash
conda create -n GMTC -c conda-forge python ipython pytest pip Pillow==9.5.0 cherrypy
```

# Run It

```bash
# cd to top level dir of cloned repo

conda activate GMTC
mkdir -p cache
python github_markdown_text_colorizer/bin/gitmdtxtclr3.py 0.0.0.0 8080 https://PUBLIC_IP # : will be appended

```
Will output

```text
[23/Nov/2023:16:36:57] ENGINE Listening for SIGTERM.
[23/Nov/2023:16:36:57] ENGINE Listening for SIGHUP.
[23/Nov/2023:16:36:57] ENGINE Listening for SIGUSR1.
[23/Nov/2023:16:36:57] ENGINE Bus STARTING
[23/Nov/2023:16:36:57] ENGINE Started monitor thread 'Autoreloader'.
[23/Nov/2023:16:36:57] ENGINE Serving on https://127.0.0.1:8080
[23/Nov/2023:16:36:57] ENGINE Bus STARTED
```

# Next Steps

## Limtations
* [the demo server, gtc.dyly.bio](https://gtc.dyly.bio) is not intended for operational use.
* The fonts available have optimal font sizes, and when not set to these sizes, can look blurry.
* These can not be used in header tagged lines.

# Development Notes
Start to first satisfying working draft ~40m.
* [Dev work running notes](github_markdown_text_colorizer/docs/chatgpt_convo.md)