Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Size option? #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

luxuryluke
Copy link

Looking on lines 9 and 103, is there a way to add in a query string for &size=300 and have that inserted @ line 103/104?

Looking on lines 9 and 103, is there a way to add in a query string for `&size=300` and have that inserted @ line 103/104?
@splorp
Copy link
Owner

splorp commented Aug 26, 2019

Adding the query string attribute is easy, but pulling a larger thumbnail from Last.fm was originally going to be tricky because the default size for the album images is only 64x64 pixels.

That being said, the images are being served via Akamai.

https://lastfm-img2.akamaized.net/i/u/64s/152aa27fbc342bff7485684425129ff5.webp

The 64s in the URI specifies the one optimized size of the thumbnail. If you change it to anything other than 64s (or leave it out entirely), the original full-size image gets served instead. The sizes for the original images are all over the map, but most seem to be 600x600 pixels or larger.

For example:

https://lastfm-img2.akamaized.net/i/u/s/152aa27fbc342bff7485684425129ff5.webp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants