Skip to content

cloud66-oss/ego

Repository files navigation

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.