Convert An Image To base64 On The Command Line
Use the base64
command with the > filename
operator to convert an image to base64 and save the string in a file:
You can also export it into an environmental variable for use in other scripts
-- end of line --