Post Reply 
Databending!
Author Message
lembas
yuri princess

Posts: 4,365.2931
Threads: 184
Joined: 30th Apr 2008
Reputation: -2.56923
E-Pigs: 154.3525
Offline
Post: #1
Databending!
Ok so!

Databending is "in essence, the artistic misuse of digital information," basically the digital worlds equivalent of circuit bending. It can be taking a file (usually an image) and modifying it in a way it wasn't meant to be. There are virtually infinite ways of doing this, i.e. opening an image in a text editor, audio editing program, hex editor, etc.

Today, I'm going to show you two different ways of doing this, one simple, one less simple.

Method 1: Plain Text editor (Notepad, Notepad++, etc.)

1) Pick your image. Works better with JPG, for some reason. I'm going to use a picture of this ridiculously attractive female with glasses and a batman shirt today.
2) Open your image in your text editor or choice.
3) Now this is where the fun starts :p Do not edit the first few lines of the image, as that's the header. Here, you can do as much, or as little as you want. Put in characters, take out characters, move around characters, etc.
4) Save the image. If it doesn't open right, you screwed up the header. Start over, and scroll down more than you did in the previous step, and try again.
5) The end! here's my result.

Method 2: Audacity
(I use the latest beta, so the menus are different. If don't have it, get the beta, if you already have it, it's all there, just different places)

1) Same as before, pick your image. This time, convert it to a bitmap (.bmp) image. I'm using the same image as before
2) Open up Audacity. File » Import » Raw Data, select your image.
3)Set encoding to U-Law, and Byte Order to Big Endian, leave everything else as is, and Import it.
4) The fun part! This time, you can add various effects to the image. Reverse, echo, phaser, flanger, EQ, etc. And again, watch out for the header. The header is easier to watch out for here, because you can usually see the difference in the wave form.
5) When you're done, click File » Export. In the Save as Type box, select Other uncompressed files. Click Options, make sure Header is set to RAW (Headerless) and encoding is set to whatever you set it to when opening (following this, U-Law), Click OK, and save it.
6) If necessary, change the extension back to .bmp. Again, if it doesn't open, you probably overwrote the header.
7) The end! A few examples of mine: Reversed a small part, Invert, and Phaser.

As you can see, the two different methods have very different outcomes. And there's nothing to day you couldn't do both. :p

And of course, once you get the hang of this, try experimenting. These are just simple guide lines, not the only way to do it. Try importing with different encodings, etc. Experimentation is key for creative databending. :D

Have fun and experiment. :D

I'm gay.
Spoiler for online game stuff:
[Image: 76561198003967361.png]
[Image: thelemmingbas.png]
3DS FC: 4184-1632-9353
Spoiler:
[Image: wQZsI.jpg]
Spoiler:
In the words of the wise trademark91:
windows Proud
(This post was last modified: 02/08/2010 04:55 PM by lembas.)
02/08/2010 04:35 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Mickey
Down with MJ yo

Posts: 3,663.2843
Threads: 251
Joined: 26th Apr 2008
E-Pigs: 28.7300
Offline
Post: #2
RE: Databending!
Ooh sweet tut man! Thanks Madwin

[Image: MiCk3Y.jpg]

[Image: battle.png]

Spoiler for link:
02/08/2010 04:41 PM
Find all posts by this user Quote this message in a reply
xero1
Love Mage/Red Mage LV: 99/75

Posts: 1,193.1964
Threads: 136
Joined: 14th Apr 2007
Reputation: -2.36942
E-Pigs: 51.3231
Offline
Post: #3
RE: Databending!
Phaser is really cool. Thanks
02/08/2010 04:46 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1294
Offline
Post: #4
RE: Databending!
JPEG?  I thought these things would work best with uncompressed sources (eg BMP)?  Some might have CRC checks to detect this type of corruption, or you could otherwise damage the decompression algo.

For BMP, I think the first ~56 bytes are typically the header, for 24-bit images.  So just mess up everything after that.  Actually, I wonder, if you import it into your sound editor as mono 24-bit raw PCM (sample rate doesn't matter), it will treat pixels as sound samples.

Thanks for the post!
(This post was last modified: 02/08/2010 04:48 PM by ZiNgA BuRgA.)
02/08/2010 04:48 PM
Visit this user's website Find all posts by this user Quote this message in a reply
lembas
yuri princess

Posts: 4,365.2931
Threads: 184
Joined: 30th Apr 2008
Reputation: -2.56923
E-Pigs: 154.3525
Offline
Post: #5
RE: Databending!
(02/08/2010 04:48 PM)ZiNgA BuRgA Wrote:  JPEG?  I thought these things would work best with uncompressed sources (eg BMP)?  Some might have CRC checks to detect this type of corruption, or you could otherwise damage the decompression algo.

For BMP, I think the first ~56 bytes are typically the header, for 24-bit images.  So just mess up everything after that.  Actually, I wonder, if you import it into your sound editor as mono 24-bit raw PCM (sample rate doesn't matter), it will treat pixels as sound samples.

Thanks for the post!

I was saying JPEG for just text-editing, BMP is all I got working with Audacity. And I've actually only tried JPEG and PNG with Notepad++, and PNG didn't work too well.

And I just imported a BMP into Audacity as Signed 24-big PCM, exported it as the same, and it wasn't too happy lol.

And I've made some minor edits to the main post. :D

I'm gay.
Spoiler for online game stuff:
[Image: 76561198003967361.png]
[Image: thelemmingbas.png]
3DS FC: 4184-1632-9353
Spoiler:
[Image: wQZsI.jpg]
Spoiler:
In the words of the wise trademark91:
windows Proud
02/08/2010 04:52 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1294
Offline
Post: #6
RE: Databending!
I see.  Actually, thinking about it, JPEG's colour system might work a bit better for this stuff.  Not sure if PNG uses zlib streams, cause if it does, it would be hash checked.

Hmm, weird that your export in 24-bit PCM didn't work too well.  I might try it when I get home.
02/08/2010 04:55 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Grey Ghost
Still kicking!

Posts: 3,997.2121
Threads: 112
Joined: 26th May 2009
Reputation: -5.01013
E-Pigs: 161.5986
Offline
Post: #7
RE: Databending!
yea ill read this thread decently when i get home and give it a go.
02/08/2010 05:00 PM
Find all posts by this user Quote this message in a reply
ProperBritish
Daddy Proper
Team DreamArts

Posts: 5,666.3250
Threads: 192
Joined: 19th Nov 2008
Reputation: -2.36574
E-Pigs: 147.7035
Offline
Post: #8
RE: Databending!
who is this female

i need more pics

[Image: Databending__Society_by_ProperBritish.jpg]

^ 1st try

xithy has already seen

[Image: rsz_contrast.png]

Spoiler for More sigs:
[Image: 6xu74t8]
[Image: sig.php]

[Image: 656embk]
[Image: sig.png]
02/08/2010 05:12 PM
Find all posts by this user Quote this message in a reply
ProperBritish
Daddy Proper
Team DreamArts

Posts: 5,666.3250
Threads: 192
Joined: 19th Nov 2008
Reputation: -2.36574
E-Pigs: 147.7035
Offline
Post: #9
RE: Databending!
[Image: blackrockshooter15.jpg]

another one

[Image: rsz_contrast.png]

Spoiler for More sigs:
[Image: 6xu74t8]
[Image: sig.php]

[Image: 656embk]
[Image: sig.png]
02/08/2010 05:22 PM
Find all posts by this user Quote this message in a reply
Silvertie
Older, less cringe, still mad.
Fractal Insanity

Posts: 1,016.3688
Threads: 32
Joined: 9th Jun 2009
Reputation: -5.33618
E-Pigs: 32.7022
Offline
Post: #10
RE: Databending!
Wow, neato.
Dunno if it really qualifies as art, though; on the other hand, I have the artistic sense of a wet sock, so what would I know?

"Books! I've read several on the subject!"
[Image: khadorsigfinal.jpg]
Silvertie: The Blog | A Door In Nowhere: The Webcomic
02/08/2010 05:25 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)

 Quick Theme: