Announcements

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

Reply

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

teyou
Casual Listener

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

2 Replies

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

teyou
Casual Listener
Any dev can help?

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

tobikabla
Music Fan

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