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

Implementing a Flux node that performs Base64 encoding of images #673

Closed
Fukuro99 opened this issue Nov 14, 2023 · 3 comments
Closed

Implementing a Flux node that performs Base64 encoding of images #673

Fukuro99 opened this issue Nov 14, 2023 · 3 comments
Labels
New Feature A new addition, whose complexity hasn't been evaluated yet wontfix This will not be worked on.

Comments

@Fukuro99
Copy link

Is your feature request related to a problem? Please describe.

Currently, there are only a limited number of ways to send image data externally, and all of them are labor-intensive and time-consuming.
I believe that being able to send image data externally at high speed will greatly expand the possibilities of Resonite.

Describe the solution you'd like

Implement a node to encode images in Base64.
It takes an ITexture2D as input and outputs a String.
It is preferable to use a format that outputs when a trigger is received.

Describe alternatives you've considered

There are two commonly used methods.
・Save the image and send the recording URL externally
・Use sampleColor to obtain color information for each pixel and summarize it into a string

The first method requires the user to save the image. The second method is too time consuming

Additional Context

No response

@Fukuro99 Fukuro99 added the New Feature A new addition, whose complexity hasn't been evaluated yet label Nov 14, 2023
@Frooxius
Copy link
Member

This will require this: #572

We're unlikely to provide node that encodes images specifically to Base64 - there's lots of different ways to do that (different pixel encoding/ordering, compressed, uncompressed, headers...). Instead we'll likely add nodes that encode input byte array to Base64 and nodes to extract image data from the image, which you could . That way you could compose this functionality yourself from those however necessary.

@Fukuro99
Copy link
Author

I see.!That method is more widely applicable!

@shiftyscales
Copy link
Collaborator

Closing this in favour of #2078 which requests more general nodes for handling encoding/decoding Base64, and since the proposed solution of the initial issue was considered unsuitable.

@shiftyscales shiftyscales closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Feature A new addition, whose complexity hasn't been evaluated yet wontfix This will not be worked on.
Projects
None yet
Development

No branches or pull requests

3 participants