Simple Python 3 GUI tool which allows to quickly get the string representing the base64 encoding of an image file.
Download the script and make it executable
sudo chmod 755 img2base64.py
Execute:
./img2base64.py
If everything went fine, a single window comes on screen:
open an image file (actually only .png and .jpg) pressing
the open file
button, then press encode
and finally copy the resulting string to
your clipboard clicking the copy to clipboard
button.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.