Skip to content

Feature Request: Higher resolution album art (640×640 instead of 300×300) #255

@leodurandfr

Description

@leodurandfr

Hi!
While experimenting with album art URLs returned by go-librespot, I noticed that the API currently retrieves the 300×300 version of Spotify images. However, Spotify also provides a higher resolution version (640×640) using the exact same hash.

What I found

Spotify image URLs follow a predictable pattern.
The size variant seems to depend on a specific segment inside the URL:

  • 00001e02 → 300×300
  • 0000b273 → 640×640

By replacing the size segment returned by go-librespot (1e02) with b273, the image is requested in its higher-resolution form.

Examples

300×300 (current go-librespot output):

640×640 (simply replacing 1e02 with b273):

Would it be possible to:

  • either automatically request the 640×640 variant,
  • or expose an option to choose the desired album art size (e.g. --image-size=max) ?

I'd be happy to test or help with implementation if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions