Announcements
From 28th September 2026, Community private messages will no longer be available. If you have any private messages you'd like to keep, please save or copy them using these steps before this date. Thank you.

Help Wizard

Step 1

NEXT STEP

[Bug] web api : Image returned is not really a square image

[Bug] web api : Image returned is not really a square image

My Question or Issue

Issue found on Apr 24th 2020.

Endpoint(s):

  • GET /v1/artists/7heucQ89tyr0QHnwB4QO4j

Scope(s):

  • None (application is not using authentication)

Steps to reproduce:

  1. Open terminal
  2. run command :
curl -X "GET" "https://api.spotify.com/v1/artists/7heucQ89tyr0QHnwB4QO4j" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer xxxx"

Expected behaviour:

The ratio of all images is 1:1, and the actual width and height of image is same.

Actual behaviour:

The ratio of all images is 1:1, but the actual width and height of image is different.
For example, the first image size is : width(361) * height(640)

{
  "external_urls" : {
    "spotify" : "https://open.spotify.com/artist/7heucQ89tyr0QHnwB4QO4j"
  },
  "followers" : {
    "href" : null,
    "total" : 26
  },
  "genres" : [ ],
  "href" : "https://api.spotify.com/v1/artists/7heucQ89tyr0QHnwB4QO4j",
  "id" : "7heucQ89tyr0QHnwB4QO4j",
  "images" : [ {
    "height" : 640,
    "url" : "https://i.scdn.co/image/6456bbf9ddfb47b9ea40d1206d208013aa84d372",
    "width" : 640
  }, {
    "height" : 320,
    "url" : "https://i.scdn.co/image/142c8c7c2520663cfb7a1666a8098cf23003a389",
    "width" : 320
  }, {
    "height" : 160,
    "url" : "https://i.scdn.co/image/b8bcb2be4f5fa71ec7ce88659ca7452a543375eb",
    "width" : 160
  } ],
  "name" : "Dapper Spider and The Moth Man",
  "popularity" : 1,
  "type" : "artist",
  "uri" : "spotify:artist:7heucQ89tyr0QHnwB4QO4j"
}

Image of first thumbnail which suppose to be in 640 x 640 dimension 

first thumbnailfirst thumbnail

 

SImilar issue was discussed in github: https://github.com/spotify/web-api/issues/1552

Reply
2 Replies

Any dev can help?

Hi, this seems indeed like a bug. After I tried some other artist there are different inconsistencies. In this case all images are square but only 160x160 pixels even if stated different in the json.

 

{
  "external_urls": {
    "spotify": "https://open.spotify.com/artist/0OdUWJ0sBjDrqHygGUXeCF"
  },
  "followers": {
    "href": null,
    "total": 865341
  },
  "genres": [
    "indie pop",
    "indie rock",
    "modern rock",
    "stomp and holler"
  ],
  "href": "https://api.spotify.com/v1/artists/0OdUWJ0sBjDrqHygGUXeCF",
  "id": "0OdUWJ0sBjDrqHygGUXeCF",
  "images": [
    {
      "height": 640,
      "url": "https://i.scdn.co/image/ab6761610000e5eb23923b7cae494ef1cd8da7bb",
      "width": 640
    },
    {
      "height": 320,
      "url": "https://i.scdn.co/image/ab6761610000517423923b7cae494ef1cd8da7bb",
      "width": 320
    },
    {
      "height": 160,
      "url": "https://i.scdn.co/image/ab6761610000f17823923b7cae494ef1cd8da7bb",
      "width": 160
    }
  ],
  "name": "Band of Horses",
  "popularity": 64,
  "type": "artist",
  "uri": "spotify:artist:0OdUWJ0sBjDrqHygGUXeCF"
}

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 5 years ago  in Social & Random