Skip to content
Encode an image to sound and view it as a spectrogram - turn your images into music
Branch: master
Clone or download
Latest commit 7b93713 Jan 6, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
v1-python add javascript version & misc improvements Feb 5, 2015
v2-js misc changes Jan 8, 2016
LICENSE.md Create LICENSE.md Jan 6, 2018
README.md
mona.wav add javascript version & misc improvements Feb 5, 2015
monalisa.jpg add javascript version & misc improvements Feb 5, 2015
monalisa.wav add javascript version & misc improvements Feb 5, 2015
s1.png misc changes Jan 8, 2016
s2.png misc changes Jan 8, 2016
s3.png misc changes Jan 8, 2016
spec1.png add javascript version & misc improvements Feb 5, 2015
spec2.png add javascript version & misc improvements Feb 5, 2015
spec3.png add javascript version & misc improvements Feb 5, 2015
spec4.png add javascript version & misc improvements Feb 5, 2015
spec5.png add javascript version & misc improvements Feb 5, 2015
spec6.png add javascript version & misc improvements Feb 5, 2015

README.md

img-encode

Encode an image to audio spectrum

Demo

https://alexadam.github.io/demos/img-encode/index.html

Open an image file

alt s1.png

Click on "Encode"

alt s2.png

alt s3.png

Open the generated 'result.wav' file with 'Sonic Visualizer', click on 'Layer -> add Spectrogram'. The result:

alt result

Other examples

alt result

alt result

alt result

alt result

alt result

How to use it

There are 2 versions: python ('v1-python' - no longer maintained) and javascript ('v2-js') This is an usage example for the javascript version, tested on Firefox 41, Ubuntu 15.10, Sonic Visualizer 2.4

  1. Download as .zip or clone the repository

  2. go to the '/img-encode' folder

  3. open '/v2-js/index.html' in Firefox

  4. click on 'Open Image...' then on 'Encode'

  5. After a few seconds you will be prompted to save the generated 'result.wav' (audio) file

  6. Open 'result.wav' with Sonic Visualizer then click on 'Layer -> add Spectrogram'

Credits

http://www.ohmpie.com/imageencode/

http://www.codebase.es/riffwave/

https://github.com/eligrey/FileSaver.js

You can’t perform that action at this time.