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

[request] Large Icon #10

Open
kobel240 opened this issue Jul 23, 2022 · 4 comments
Open

[request] Large Icon #10

kobel240 opened this issue Jul 23, 2022 · 4 comments
Labels
feature request Addon feature requests

Comments

@kobel240
Copy link

kobel240 commented Jul 23, 2022

(dont know if this is possible but... if possible) it would be cool to use the preview image that blender uses in the file browser as rich presence large icon
image

@kobel240
Copy link
Author

I cant place the request label myself :(

@kobel240 kobel240 changed the title Large Icon [request] Large Icon Jul 23, 2022
@abrasic abrasic added the feature request Addon feature requests label Jul 23, 2022
@abrasic
Copy link
Owner

abrasic commented Jul 23, 2022

Hi there, thanks for your request.

This feature is a great idea; sadly though, Discord Rich Presence images can only be retrieved from images that I've already uploaded to the client that powers BlendPresence (i.e blender logo, context modes) - meaning there's no official way to reference local images to use as icons.

I'll be closing this for now, but If this is somehow possible in the forseeable future, I would really like to look into adding this.

@abrasic abrasic closed this as not planned Won't fix, can't repro, duplicate, stale Jul 23, 2022
@abrasic
Copy link
Owner

abrasic commented Sep 18, 2022

Reopening this, I may have found a way to make and read thumbnails to put to the presence

@abrasic abrasic reopened this Sep 18, 2022
@abrasic
Copy link
Owner

abrasic commented Sep 19, 2022

OK, after a bit of testing, I'm able to generate thumbnails by slightly modifying blender-thumbnailer.py to get it working for the add-on. Unfortunately though, I'm stumped past finding a proper way to upload said thumbnail.

The only logical way for me to properly post images to the presence would be converting the image to base64 data to pass onto the presence, however (a) Discord has a hard limit of 256 characters for input (most encoded thumbnails are around 10,000 chars) and (b) I don't even know if discord supports base64 data for the RPC.

I've realized that you can pass image URLs and it does work, however I don't feel willing to make some sort of service that involves frequently uploading thumbnails to post onto a web server for a feature like this. It was worth trying out though. I'll leave this open incase there are other methods that can be used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Addon feature requests
Projects
None yet
Development

No branches or pull requests

2 participants