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.
- Host: GitHub
- URL: https://github.com/cloud66-oss/ego
- Owner: cloud66-oss
- License: apache-2.0
- Created: 2015-11-02T13:04:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T11:03:34.000Z (over 2 years ago)
- Last Synced: 2025-03-24T21:42:26.865Z (about 2 months ago)
- Language: Ruby
- Homepage:
- Size: 15.2 MB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.