3
shoop
28d

How do I interpret the json response for the image of the user? It's a really long filename string, and idk what to do with it

Comments
  • 1
    It is delimetered by "_" in key-value pairs.

    Each value dictates a different option,
    You can use it with the avatar builder to identify what each key is for.
  • 2
    @C0D4 how do I convert that to an image in the end?

    Edit: figured it out. Just go to avatars.devrant.com/longstring.png
  • 2
    @shoop
    In the json, you get the file path, for example:

    v-35_c-1_b-4_g-m_9-1_1-9_16-15_3-3_8-4_7-4_5-7_12-9_6-11_10-9_2-44_22-10_18-4_19-4_4-7_20-15_21-7.png

    Just prepend this domain:
    https://avatars.devrant.com/

    and it will load the appropriate image.

    Messing with each key-pair will change a particular property of the image.

    The first couple are size and colour if memory serves me right.
Add Comment