I mocked up this little data-destructor in Processing last night.  Hope you guys like it.

//image destroyer
//works for movie files too!
//load files into same directory as program.
//sometimes it doesn't work.

String img = “ronaldreagan”; //file name
String ext = “.jpg”; //file extension

for(int num = 1; num <= 10; num++) { //10 iterations
byte[] data=loadBytes(img+ext);
for(int i=0;i<100;i++) //100 changes
{
int loc=(int)random(128,data.length);
data[loc]=(byte)random(255);
}
saveBytes(img+num+ext,data); //won’t overwrite
}

exit();

Advertisements