{"id":13508355,"url":"https://github.com/zhangsoledad/alchemic_avatar","last_synced_at":"2025-03-17T00:32:34.370Z","repository":{"id":57478790,"uuid":"55492344","full_name":"zhangsoledad/alchemic_avatar","owner":"zhangsoledad","description":"Creating letter avatar from a name","archived":false,"fork":false,"pushed_at":"2023-01-04T05:54:35.000Z","size":103,"stargazers_count":56,"open_issues_count":2,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-13T13:38:06.707Z","etag":null,"topics":["avatar","elixir"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/alchemic_avatar","language":"Elixir","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/zhangsoledad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-05T09:13:30.000Z","updated_at":"2024-09-08T09:47:30.000Z","dependencies_parsed_at":"2023-02-02T00:01:26.700Z","dependency_job_id":null,"html_url":"https://github.com/zhangsoledad/alchemic_avatar","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangsoledad%2Falchemic_avatar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangsoledad%2Falchemic_avatar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangsoledad%2Falchemic_avatar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangsoledad%2Falchemic_avatar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhangsoledad","download_url":"https://codeload.github.com/zhangsoledad/alchemic_avatar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221669359,"owners_count":16860856,"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":["avatar","elixir"],"created_at":"2024-08-01T02:00:51.888Z","updated_at":"2024-10-27T11:35:30.478Z","avatar_url":"https://github.com/zhangsoledad.png","language":"Elixir","funding_links":[],"categories":["Images"],"sub_categories":[],"readme":"# AlchemicAvatar\n\n[![Build Status](https://travis-ci.org/zhangsoledad/alchemic_avatar.svg?branch=master)](https://travis-ci.org/zhangsoledad/alchemic_avatar?branch=master)\n[![Inline docs](http://inch-ci.org/github/zhangsoledad/alchemic_avatar.svg?branch=master)](http://inch-ci.org/github/zhangsoledad/alchemic_avatar)\n\nCreating letter avatar from user's name(or any other strong / character).\n\u003eInspired by [letter_avatar](https://github.com/ksz2k/letter_avatar).\n\n## Examples\n\n#### Google's Inbox Palette\n\n\u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/13031513/43eefa76-d30b-11e5-8f06-85f8eb2a4fb6.png\" width=\"60\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/13031514/43ef6d8a-d30b-11e5-9fbc-38ae526b56b3.png\" width=\"60\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/13031517/43f0da12-d30b-11e5-8fef-6c7daf235a54.png\" width=\"60\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/13031515/43f0568c-d30b-11e5-95c5-1653361d4443.png\" width=\"60\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/13031512/43eebcc8-d30b-11e5-9f95-0093bfadd182.png\" width=\"60\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/13031516/43f0d0bc-d30b-11e5-8822-f01a6a138ff8.png\" width=\"60\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/13031519/44382430-d30b-11e5-96e4-bcd7ce5eb155.png\" width=\"60\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/13031518/44378d04-d30b-11e5-9400-55ff46b94cbe.png\" width=\"60\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/13031521/443a03cc-d30b-11e5-8467-9592e9dbb2ae.png\" width=\"60\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/13031523/443badc6-d30b-11e5-9d72-45613018cab4.png\" width=\"60\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/13031520/44394e14-d30b-11e5-966c-2eada89295c9.png\" width=\"60\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/13031522/443a71fe-d30b-11e5-88f4-37d1fd220abb.png\" width=\"60\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/13031525/44752b1e-d30b-11e5-8290-ed8888055e64.png\" width=\"60\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/13031524/4471cef6-d30b-11e5-9f4c-004f993dd27b.png\" width=\"60\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/13031526/4475a990-d30b-11e5-8be3-c8f4482dee03.png\" width=\"60\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/13031527/44772482-d30b-11e5-92f0-b9190c312d70.png\" width=\"60\" /\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5518/13031528/447804ce-d30b-11e5-8002-9424d5474ddb.png\" width=\"60\" /\u003e\n\n## Installation\nSystem requirements\n\n```bash\n$ sudo apt-get install -y imagemagick\n```\n\nMac OS X\n\n```bash\n$ brew install imagemagick ghostscript\n```\n\nAdd alchemic_avatar to your list of dependencies in `mix.exs`:\n```\ndef deps do\n  [{:alchemic_avatar, \"~\u003e 0.1.0\"}]\nend\n```\n\nEnsure alchemic_avatar is started before your application:\n```\ndef application do\n  [applications: [:alchemic_avatar]]\nend\n```\n\n## Configuration\n\n```\nconfig :alchemic_avatar,\n  cache_base_path: \"static\",             # default is \"static\"\n  colors_palette: :iwanthue,             # default is :google\n  weight: 500,                           # default is 300\n  annotate_position: \"-0+10\",            # default is -0+5\n  app_name: #your app name(required)\n```\n#### Color palette\n\nWe have two color palettes implemented: `iwanthue` and `google`.\n\nEach of them have different colors, but the `iwanthue` also differently calculates the color for specified username.\n\nThe `google` selected will generate the same avatar for both, \"Krzysiek\" and \"ksz2k\" usernames given (both of them starts with letter \"k\"), but `iwanthue` will calculate it's md5 and then selects color, so there's huge chance that these usernames get different colors.\n\n## Usage\n\n```\nAlchemicAvatar.generate \"ksz2k\", 200\n=\u003e \"public/system/alchemic_avatar/k/155_206_95/200.png\"\n```\n\n### Way to support chinese hanzi\n```bash\n# Translate chinese hanzi to pinyin\n# https://github.com/zhangsoledad/alchemic_pinyin\niex\u003e Pinyin.from_string(\"龡龢龣龤龥癩\")\n\"chui he jue xie yu la\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhangsoledad%2Falchemic_avatar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhangsoledad%2Falchemic_avatar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhangsoledad%2Falchemic_avatar/lists"}