raywo / MMM-NowPlayingOnSpotify

A module for MagicMirror displaying the song currently playing on Spotify.
MIT License
205 stars 43 forks source link

Album art resolution #118

Open MKa71 opened 1 year ago

MKa71 commented 1 year ago

Hi,

Just bought my first Raspberry today and successfully installed MMM-NowPlayingOnSpotify. Very cool piece of software, thank you!

One suggestion though: I noticed that the cover art pictures shown are not using the full resolution. If I open the same track on Spotify on my Android mobile phone or on an Apple iPad, the cover art photos shown are much sharper.

My plan is to create a framed cover art display on my living room wall and the only thing displayed is the album cover, kind of like you would have the 12" LP of the artist played shown. As the display will be quite large, a better resolution cover art photo would be nice...

Fabrizz commented 1 year ago

Hey ik that this is old, but you can select the image resolution from the api response (Spotify response contains 3 sizes). In the node helper there is a function that enables you to do that: (chack the node_helper.js file)

getImgURL(images) {
    let filtered = images.filter((image) => {
      return image.width >= 240 && image.width <= 350; // Change here. I dont know the available resolutions, I think that the highest is 500*500
    });
MKa71 commented 1 year ago

Thanks @Fabrizz ! I was actually able to figure this out by myself a few days after posting by looking at the code. It just took some time as I haven't coded anything in about 20 years or so. :)

Now it looks the way I wanted.

20221018_184650

diditje64 commented 1 year ago

Just wanna say that this is a super nice idea.

MKa71 commented 1 year ago

Thanks, it turned out quite like what I expected. It is built out of a 24" 16:9 TFT, which was teared down to make it thinner (ie. removing the lcd-panel and its control board from the plastic frame). Then building a wooden frame around it.

image

Fabrizz commented 1 year ago

Thanks, it turned out quite like what I expected. It is built out of a 24" 16:9 TFT, which was teared down to make it thinner (ie. removing the lcd-panel and its control board from the plastic frame). Then building a wooden frame around it.

image

That nice, I have something similar! Maybe some (subtle) rgb lighting at the back? Using color data from the album