{"id":20607502,"url":"https://github.com/loopj/initials-avatar","last_synced_at":"2025-04-15T03:55:50.898Z","repository":{"id":18574079,"uuid":"21776906","full_name":"loopj/initials-avatar","owner":"loopj","description":"Generate an avatar image from a user's initials, ideal for use as a meaningful gravatar fallback.","archived":false,"fork":false,"pushed_at":"2015-07-12T23:39:48.000Z","size":206,"stargazers_count":43,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T03:55:46.745Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loopj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-12T21:27:21.000Z","updated_at":"2022-09-05T14:36:03.000Z","dependencies_parsed_at":"2022-08-30T23:01:11.544Z","dependency_job_id":null,"html_url":"https://github.com/loopj/initials-avatar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopj%2Finitials-avatar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopj%2Finitials-avatar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopj%2Finitials-avatar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopj%2Finitials-avatar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loopj","download_url":"https://codeload.github.com/loopj/initials-avatar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249003951,"owners_count":21196794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T10:07:38.289Z","updated_at":"2025-04-15T03:55:50.881Z","avatar_url":"https://github.com/loopj.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Initials Avatar\n---------------\n\nGenerate an avatar image from a user's initials, ideal for use as a meaningful gravatar fallback. For example:\n\n\n## Usage\n\n### Basic Usage\n\nGenerate a 100x100 avatar for the initials *JD*:\n\n```\nhttp://initials.me/jd\n```\n\n![Basic avatar](examples/jd.png)\n\n\n### Specifying Size\n\nGenerate an 50x50 avatar for the initials *JS*:\n\n```\nhttp://initials.me/js?s=50\n```\n\n![50x50 avatar](examples/js-50.png)\n\n\n### Specifying Colors\n\nGenerate an avatar with custom foreground/background colors:\n\n```\nhttp://initials.me/js?s=50\u0026fg=336699\u0026bg=ffcc00\n```\n\n![Colored avatar](examples/yo-50-yellow.png)\n\n\n### Use as a Gravatar Fallback\n\nShow the [Gravatar](http://gravatar.com) for a particular user, and fallback to showing their initials (*JD*) if the Gravatar doesn't exist:\n\n```\nhttp://www.gravatar.com/avatar/00000000000000000000000000000000?d=http%3A%2F%2Finitials.me%2FJD\n```\n\n\n## Dependencies\n\nThis app requires [ImageMagick](http://www.imagemagick.org/) and [Ghostscript](http://www.ghostscript.com/) to be installed:\n\n### Mac\n\n```shell\n$ brew install imagemagick ghostscript\n```\n\n### Ubuntu\n\n```shell\n$ sudo apt-get install ruby-dev libmagickwand-dev imagemagick\n```\n\n\n## Installation\n\n```shell\nbundle install\n```\n\n\n## Starting the Server\n\n### Rackup\n\nFor running locally, I recommend using the `rackup` command:\n\n```shell\n$ rackup\n```\n\n### Docker\n\nYou can run this in production using [Docker](https://docker.com) as follows:\n\n```shell\n$ docker pull loopj/initials-avatar\n$ docker run -p 80:80 loopj/initials-avatar\n```\n\n\n### Mounting Under a Rails App\n\nIf you'd like to run this from inside an existing rails app, you can mount it as follows in `config/routes.rb`:\n\n```ruby\nmatch \"/initials-avatar\" =\u003e InitialsAvatar, :anchor =\u003e false\n```\n\nYou can then access avatars at /initials-avatar/:initials from your rails app.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floopj%2Finitials-avatar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floopj%2Finitials-avatar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floopj%2Finitials-avatar/lists"}