ImageProcessor is a tool that allows anyone to convert anything to an image, or take that image and convert it back to its initial data!
Example text to image:
Example audio of wind in a forest to an image:
First clone
git clone https://github.com/fvolcic/Convert-To-Image.git
Enter the directory, and then run
python3 build.py
This will create a binary titled 'ImageProcessor'
When converting audio files, I recommend using .wav files. They are uncompressed, so the image will more closely reflect what you are actually hearing!
To convert something to an image we use the following set of commands
./ImageProcessor -d -f [input-file] -o [output-file]
To convert something from an image (must have been an image created with ImageProcessor), we use the following command
./ImageProcessor -i -f [input-image]
This will return the Github Logo
./ImageProcessor -i -f test-file.bmp
This will return a 1 second audio file of wind in a forst
./ImageProcessor -i -f wind.bmp
Or, drag and drop any file youd like into the directory and run this command to get an image:
./ImageProcessor -d -f [YOUR-FILE-NAME] -o [myfile.bmp]
And to get the original data back, run
./ImageProcessor -i -f myfile.bmp
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.