# How do I post an avatar image?

**URL:** <https://boards.straightdope.com/t/how-do-i-post-an-avatar-image/927401>\
**Category:** About This Message Board\
**Created:** [December 6, 2020, 7:10pm UTC](https://boards.straightdope.com/t/how-do-i-post-an-avatar-image/927401 "2020-12-06T19:10:09Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![LSLGuy](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lslguy/32/5813_2.png) [@LSLGuy](https://boards.straightdope.com/u/LSLGuy)\
**Post date:** [December 8, 2020, 12:46am UTC](https://boards.straightdope.com/t/how-do-i-post-an-avatar-image/927401/11 "2020-12-08T00:46:04Z")

</div>

Here’s my older post partly explaining how the Discourse icon generator works.

> [@Is every icon unique?](https://boards.straightdope.com/t/is-every-icon-unique/917100/4):
>
> I investigated the HTML. The icons are generated on the fly using a simple interface that specifies the letter to be used, the RGB color value in hex, and the size in pixels. Which means there are 256^3 = 16,777,216 possible colors for any given letter. Though humans (and their monitors) can’t discern nearly that many different colors in the gamut. Times 26 letters gives 436,207,616 possible icons. I don’t know if a Discourse username can start with a non-letter. The icon generator always ren…

Here’s the rest of the story.  
This is an example of an auto-generated icon I grabbed from another user:  
[https://avatars.discourse-cdn.com/v4/letter/t/ea5d25/90.png](https://avatars.discourse-cdn.com/v4/letter/t/ea5d25/90.png)  
And this is the corresponding url:

> [https://avatars.discourse-cdn.com/v4/letter/t/ea5d25/90.png](https://avatars.discourse-cdn.com/v4/letter/t/ea5d25/90.png)

- The letter to generate is given in the part of the URL after “/letter/”. You can use upper or lower case in the url and it’ll always generate an uppercase response.
- The next section is the hex RGB code for the background. You can find yours by looking at the generated icon on the change-icon popup.
- Finally, the name part of the filename.png is the size in pixels.

So that Url makes a T, with a background color of #EA5D25 that’s 90 pixels square.

Happy diddling!

---

_[View the full topic](https://boards.straightdope.com/t/how-do-i-post-an-avatar-image/927401)._
