FANDOM


The Avatar object describes a User's avatar image - its size and the url where it can be retrieved.

On the website we show avatars at 16x16 in the header and 48x48 elsewhere but we store only the original uncropped image and crop and resize it each time it is displayed. If you wish to crop and/or resize avatar images see Images.

Note that there can be a short delay after uploading an avatar before it becomes available for serving. Therefore the Avatar object may be present without an avatar_serving_url attribute.

AttributesEdit

Name Type Mandatory Description

avatar_serving_url

String No

The url where the user’s avatar can be retrieved. This url is not suitable for long-term caching as it will change if the user changes their avatar.

Note that there can be a short delay after uploading an avatar before it becomes available for serving. Therefore the Avatar object may be present without a serving url.

avatar_width Integer Yes

The width of the stored avatar image. See note above about cropping and resizing avatars.

avatar_height Integer Yes The height of the stored avatar image. See note above about cropping and resizing avatars.

ExampleEdit

{
    "avatar_height": 450,
    "avatar_width": 600,
    "avatar_serving_url": "http://lh6.ggpht.com/jEItPe0EtKFcIIeeqq_Pp8AaLHdZzp9ACT2MPurxf5I6Eln3pjpOnaAm4rR0WAEEStk9HUUIygezuYVboFxF"
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.