Skip to content

Discord Rich Presence: Display album cover art as the large image #1750

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mrpapersonic
Copy link
Contributor

@mrpapersonic mrpapersonic commented May 20, 2025

This is quite a bit more appealing than just duplicating the simple Strawberry logo :)

Example of what this looks like from within Discord:

image

There are some iPods which do not support ALAC, but they are quite rare. Anything 3rd gen
and newer, which most people are likely to be using, will work if upgraded to the latest
firmware (they probably are already on it...)
@mrpapersonic mrpapersonic force-pushed the rich-presence branch 3 times, most recently from 894edc7 to c0e54e3 Compare May 24, 2025 03:29
@jonaski
Copy link
Member

jonaski commented Jun 3, 2025

I think we need to do this differently as this will request covers for each song change in addition to the original request if the cover was missing.
Have you checked if Discord accepts data URI scheme?

@mrpapersonic
Copy link
Contributor Author

I haven't, but I'm not sure if it will work, given that the image URL is limited to 128 characters (640k ought to be enough for anybody), I don't think it would fit.

Possibly we could also make it an option. I took that approach in wgsdk (my winamp plugin for discord presence) as well.

@mrpapersonic
Copy link
Contributor Author

mrpapersonic commented Jul 14, 2025

I think we need to do this differently as this will request covers for each song change in addition to the original request if the cover was missing. Have you checked if Discord accepts data URI scheme?

It looks like Discord does support the file:// URI scheme, so we could save the cover data to a temp file (png, jpg, webp, pick your poison) and let Discord load from that.

Nevermind, the code in question was to support uploading to an external website that Discord can then download the image from.

This is quite a bit more appealing than just the simple Strawberry logo :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants