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

https://github.com/cloud66-oss/ego

Converts initials into a simple square image.
https://github.com/cloud66-oss/ego

Last synced: about 1 month ago
JSON representation

Converts initials into a simple square image.

Awesome Lists containing this project

README

        

# Ego

Ego is a simple Rails based web application that transforms an input of one-two letters into a square image showing those letters.
This is primarily used as an image source for a gravitar-missing fallback.

### Usage

Start the webserver:
```
export CACHE_PATH=/tmp/cache
bundle exec rails s -b 0.0.0.0
```
Then from your browser, navigate to:

`http://localhost:3000/generate/ab/size/30`

You will then see a simple un-styled image of the initials `AB`

#### ImageMagick Dependency

Note that this requires `ImageMagick` libraries to run (as it uses `ImageMagick` to generate the image)

On OSX you can use homebrew to install ImageMagick with the command:
```
brew install imagemagick@6
```

The Dockerfile in this project defines the dependency installations for running in a container.