Back to the Overview

Retina Images

Images are returned by a number of endpoints. These images usually have a variety of versions. Take the /v3/account/me endpoint:

{
  "id": 20224,
  "username": "yoshi",
  "email": "yoshi@example.com",
  "full_name": "Yoshi Nakamura",
  "avatar": {
    "large": "https://assets1.deliradio.com/uploads/account/avatar/201/mobile_large_retina_avatar_uploads_2F1370388244646-nn90njo2glqbbj4i-7a80987248ee57c771e132a0fe47c7f9_2Fben10.png",
    "small": "https://assets2.deliradio.com/uploads/account/avatar/201/mobile_small_retina_avatar_uploads_2F1370388244646-nn90njo2glqbbj4i-7a80987248ee57c771e132a0fe47c7f9_2Fben10.png"
  }
}

Here we have large and small versions of the user's avatar. The small version is intended to be used in lists, while the large version is more suited to a profile screen.

For devices that have hi resolution displays (Retina on iOS, High DPI on Android) you can request that 2X images be returned by setting the DELI-RETINA header with your request. When DELI-RETINA is present, the urls above will point to images that are exactly twice as large as the non-retina versions.