I created a perl script to convert an image to .wav, and another to do the opposite.
The reason I did this was so that I could compress the .wav with mp3, then decompress back to wav and see how mp3 compression works on images.
Here is the image I tried this script with. It's a picture of Cirrus warning us to stay away from her fortress.
After compressing it with LAME at 64kbps, it now sounds like: kitten.mp3
Then, converting it back to an image, it looks like this:
Apparently, audio compression codecs aren't designed to compress images. That said, it turned out better than I was expecting.
Requires: Perl, Image::Magick, Image::RGBA, Audio::Wav, GD
Go back to the main page.
Site created by Hadley.