This project was designed to help me understand how base64 encoding and decoding works. I started this proect as a way of better understanding how the Ethscription protocol works, how files are decoded and still be decoded and read.
You can simply get your hands on this file and start working with it. Here's how:
- Fork this repository
- Cloen it locally to your computer
git clone https://github.com/arewageek/img-base64-converter
(Change "arewageek" to your username if you did clone it) - Cd into th directory you cloned it to
cd img-base64-converter
- Replace the image in the images folder with yours and update the image name in the index.py file
- Open your terminal and run the script
- If you're using vscode simply press
CTRL + J
- In your terminal type
python3 index.index.py
(Ensure you're in the right directory) - If you're using a different OS you would probably have to run
python index.py
- If you're using vscode simply press
- Check the data folder to view the image decoded. Feel free to change the image type from png to whatever type you intend to work with.
- That should be all. Have fun eperimenting with this.