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

Save as base64 in a variable #346

Open
TepMaster opened this issue Apr 20, 2022 · 1 comment
Open

Save as base64 in a variable #346

TepMaster opened this issue Apr 20, 2022 · 1 comment

Comments

@TepMaster
Copy link

It problem is that if you want to use the lib to make an image and send it to a remote server is impossible beavis it don't exist a function to save the data in a variable only to save it to a file.

@fractalaxy7
Copy link

fractalaxy7 commented Jul 4, 2023

@TepMaster The jpeg_buffer plug-in allows you to store JPEGs in buffers to easily convert into Base64. Also, many programs, including Firefox, store images as temporary files (of which there is a function in the cimg:: namespace returning the temporary file directory) and then read back from them to convert the content into Base64.

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

No branches or pull requests

2 participants