-
This tool is for converting image to base64 string which can be inserted into markdown document directly to display without upload the image to server.
-
You can use the converted string like demo.md show.
-
Tests of this tool were conducted only on windows 7 / 10 and ubuntu 14.04 / 16.04 / 18.04.
-
Convert single image to base64 string and copy the string to clipboard automatically.
-
Convert mutiple images to base64 strings which are stored in respective files.
-
Converting progress display.
-
Python 3.1 or newer version
-
pyperclippip install pyperclip
-
tkinterFor windows,
tkinteris included with all standard Python distributions since Python 3.1. For ubuntu, installtkinteras follows.sudo apt-get install python3-tk
-
xclipFor ubuntu, you must install
xclipbefore using this tool.sudo apt-get install xclip
python img2base64.py- Click
Select single imagebutton first to select the image and then clickConvert & Copybutton to convert the image. Converted base64 string will be copied to clipboard automatically.
- Click
Select several imagesbutton first to select the path which stored the images and then clickConvert & Exportbutton to convert every image under the path to a single file and select another path to save the result.
You can use PyInstaller to package the tool script and all its dependencies into a single executable file.