Skip to content

Convert-To-Image is a tool that allows you to convert an arbitrary file into an image. The transformation is also invertible, and thus you can convert the image back into its original data

License

Notifications You must be signed in to change notification settings

fvolcic/Convert-To-Image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convert Anything To An Image!

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:

Installation

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'

Usage

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]

Try It

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

Contributing

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.

License

MIT

About

Convert-To-Image is a tool that allows you to convert an arbitrary file into an image. The transformation is also invertible, and thus you can convert the image back into its original data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published