Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

copy image / paste base64 encoded image

I would like to copy an image from within e.g. Powerpoint and then paste it into an HTML document (inline) as base64 encoded text. Do you know any software that could do that? I have been looking at several clipboard managers. Of which ClipMenu might be closest to what I am looking for, but it is not possible to handle images therein and the newest version doesn't support this anymore anyways... I.e. I liked the idea of being able to apply some javascript to the clipboard object.

Other than that I didn't find anything... The alternative is to save the item in a file, upload, rename, link...

I am working on MacOS 10.11.6

Thanks,

Bernd

like image 671
user224637 Avatar asked Mar 27 '26 20:03

user224637


1 Answers

you can do it using the terminal with the path and name of your image file using below command,

openssl base64 < path/to/file.png | tr -d '\n' | pbcopy or cat path/to/file.png | openssl base64 | tr -d '\n' | pbcopy

the base64 code will be copied to your clipboard

like image 144
Md.Estiak Ahmmed Avatar answered Mar 29 '26 08:03

Md.Estiak Ahmmed



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!