Databending Images in Audacity
Itâs easy, but there are a few steps involved. Only uncompressed images can be databent, so I tend to stick to .BMP files as a safe pick. Iâve quickly whipped up a .BMP image in GIMP and have Audacity open.
Under âFileâ in Audacityâs toolbar, find âImportâ > âRaw DataâŠâ and click that. Browse to the location of your image file and select it. The âImport Raw Dataâ window will appear. In the Encoding drop-down menu, choose either âU-Lawâ or âA-Law.â I do not know what the difference is and usually just pick âU-Law.â Remember which one you picked. The rest of the settings can be left alone.
Your image will appear as a waveform because Audacity is interpreting your image as an audio file. If you play it, it might hurt to listen to, so watch your volume. Click and drag along it to select a large portion of the waveform, but make sure to leave the first little bit of it alone. Thatâs the file header, and if itâs edited, it canât be rebuilt into a functioning image file. Below is my imageâs waveform, and you can see how much of it Iâve selected directly above it.
With part of your waveform selected, find âEffectâ in the toolbar. Note that some effects will break your image (effects that change the length are particularly prone to doing this). Trustworthy picks are âEcho,â âPhaser,â âReverb,â and âWahwahâ but feel free to experiment. If you know music terminology, you might have a clearer idea about what effects these might have on an image. You can also layer on multiple effects. For this example, Iâm picking âEchoâ and keeping the default settings.
Under âFileâ in the toolbar, go to âExportâ and select âExport Audio.â The Export Audio window will appear. In the âSave as typeâ drop-down, select âOther uncompressed files,â This will enable some settings in the âFormat Optionsâ section at the bottom of this window. There, set âHeaderâ to âRAW (header-less)â and set Encoding to âU-Lawâ if you picked âU-Lawâ encoding earlier, and âA-Lawâ if you picked âA-Lawâ encoding earlier. Change your fileâs name so that it ends in .bmp instead of .raw, but I wouldnât recommend overwriting your original file. Export your image, ignoring the windows that follow.
Your image should be databent now! The change in mine isnât super substantial because I just added a small echo, but you can get some wild and neat results. I tend to crop and edit mine further afterwards.
Troubleshooting: Exporting databent images sometimes results in transparent sections. If you donât want that, further editing will be necessary. If your image exports and itâs completely broken and unopenable no matter what you do, make sure you selected the same encoding method in the beginning that you did in the end. Also make sure youâre selecting âExport Audioâ and not âExport Selected Audio.â Still not working? Try exporting the image without applying effects. If simply exporting the image from Audacity breaks it, thereâs an issue with the way your source image file was exported. Here are my .BMP export settings in GIMP.
If you are concerned about Audacityâs recent introduction of telemetry, be aware that they reversed that decision as of 2021 May 16.