spotify / web-api

This issue tracker is no longer used. Join us in the Spotify for Developers forum for support with the Spotify Web API ➡️ https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer
981 stars 79 forks source link

Image resource size inconsistent with image width/height metadata #1370

Open dotJayEss opened 5 years ago

dotJayEss commented 5 years ago

Title: Image resource size inconsistent with image width/height metadata

Issue found on October 23rd 2019.

Endpoint(s):

Scope(s):

Steps to reproduce:

  1. Request an artist from the api.
  2. Call https://api.spotify.com/v1/artists endpoint with id 2cFrymmkijnjDg9SS92EPM
  3. I provided the above id as a convenience; however, this issue is true for every artist I have requested.

Expected behaviour:

An artist object whose images array contains image objects whose metadata is consistent with the actual width and height of the image resource.

Actual behaviour:

The below return shows the images are expected to be square with equal width and height; however, the images returned when viewing the url of the image are 4:3. { "external_urls" : { "spotify" : "https://open.spotify.com/artist/2cFrymmkijnjDg9SS92EPM" }, "followers" : { "href" : null, "total" : 2437817 }, "genres" : [ "pop" ], "href" : "https://api.spotify.com/v1/artists/2cFrymmkijnjDg9SS92EPM", "id" : "2cFrymmkijnjDg9SS92EPM", "images" : [ { "height" : 640, "url" : "https://i.scdn.co/image/e4ee29a9e1194732e093fc0859f51e281db1eaae", "width" : 640 }, { "height" : 320, "url" : "https://i.scdn.co/image/0c0bb3f3790e9a6953a3a93500196cdbeae1ca09", "width" : 320 }, { "height" : 160, "url" : "https://i.scdn.co/image/2875a9f440a1c30e8a85e4ca68944693d48c1795", "width" : 160 } ], "name" : "blackbear", "popularity" : 86, "type" : "artist", "uri" : "spotify:artist:2cFrymmkijnjDg9SS92EPM" }

teyou commented 4 years ago

looks like similar issue: https://github.com/spotify/web-api/issues/1552