AmrMahmoud2 / img-encode

Encode an image to sound and view it with a spectrogram - turn your images into music

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Encode an image to sound and view it with a spectrogram - turn your images into music

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

License:MIT License


Languages

Language:JavaScript 64.8%Language:HTML 15.6%Language:CSS 10.2%Language:Python 9.4%