[GH-ISSUE #234] Serve scaled down album art images #174

Closed
opened 2026-02-26 02:32:21 +03:00 by kerem · 1 comment
Owner

Originally created by @ronilaukkarinen on GitHub (Feb 15, 2016).
Original GitHub issue: https://github.com/koel/koel/issues/234

It seems very large album covers are fetched, it takes long time to download them in the overall view. Can they be scaled down by default?

Originally created by @ronilaukkarinen on GitHub (Feb 15, 2016). Original GitHub issue: https://github.com/koel/koel/issues/234 It seems very large album covers are fetched, it takes long time to download them in the overall view. Can they be scaled down by default?
kerem closed this issue 2026-02-26 02:32:21 +03:00
Author
Owner

@phanan commented on GitHub (Feb 15, 2016):

If you're talking about Last.fm-fetched images, they're all 300x300px, which is believed to be the best fit given the artist/album item element is 256px wide, so scaling down is not necessary. Now, the images can use some compression (for example, by saving the Last.fm PNG covers into JPG I managed to reduce up to 50% in file size), but I'm not sure if it's a good idea to implement the functionality because of several reasons:

  • Image manipulation can be complex and has its own set of requirements
  • More (trivial) functionalities = more overhead, complexity, and prone to bugs
  • I don't want Koel to be too tightly coupled with Last.fm, or any 3rd party in that sense.

Guess I'm going to hold this off for now. Thanks for the idea though.

<!-- gh-comment-id:184134440 --> @phanan commented on GitHub (Feb 15, 2016): If you're talking about Last.fm-fetched images, they're all 300x300px, which is believed to be the best fit given the artist/album item element is 256px wide, so scaling down is not necessary. Now, the images can use some compression (for example, by saving the Last.fm PNG covers into JPG I managed to reduce up to 50% in file size), but I'm not sure if it's a good idea to implement the functionality because of several reasons: - Image manipulation can be complex and has its own set of requirements - More (trivial) functionalities = more overhead, complexity, and prone to bugs - I don't want Koel to be too tightly coupled with Last.fm, or any 3rd party in that sense. Guess I'm going to hold this off for now. Thanks for the idea though.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#174
No description provided.