Bitcoin Forum

Other => Off-topic => Topic started by: SgtSpike on June 30, 2011, 07:43:56 PM



Title: Convert random file into image
Post by: SgtSpike on June 30, 2011, 07:43:56 PM
Say I wanted to take a data file (like an excel file), and display it as an image.  I would imagine that it would just look like a bunch of white noise, but I've always been curious to see what kind of patterns develop.  I've already converted some excel files and other files to audio in the past, so I've listened to pictures and spreadsheets.  Anyway, how would I go about opening a file in a format that wouldn't cause an error (e.g. "This is not a valid .jpg format").  May a RAW?  Or BMP?


Title: Re: Convert random file into image
Post by: qbg on July 01, 2011, 02:03:13 AM
Say I wanted to take a data file (like an excel file), and display it as an image.  I would imagine that it would just look like a bunch of white noise, but I've always been curious to see what kind of patterns develop.  I've already converted some excel files and other files to audio in the past, so I've listened to pictures and spreadsheets.  Anyway, how would I go about opening a file in a format that wouldn't cause an error (e.g. "This is not a valid .jpg format").  May a RAW?  Or BMP?
Quick test to see if they might look like white noise: try compressing them -- if they don't compress very much at all, they will probably look very noisy.

If know a programming language, converting them to a bmp would be easy as it has a simple format.


Title: Re: Convert random file into image
Post by: bitplane on July 01, 2011, 02:52:16 PM
Here's a tool I made for this, many years ago (it's for evading corporate mail filters, so it XORs the file)

http://bitplane.net/projects/misc/mail-filter-evasion/


Title: Re: Convert random file into image
Post by: bitlotto on July 01, 2011, 03:41:08 PM
http://www.ryanwestafer.com/stuff/bin2img.php


Title: Re: Convert random file into image
Post by: SgtSpike on July 01, 2011, 04:30:47 PM
bitplane, nice tool!  Though a wallet file ends up being terrible unexciting....

http://i52.tinypic.com/24oowhy.png

bitlotto, I got your tool to work once or twice, but then couldn't get it to render a wallet file at width=100.  It only seemed to like the tall vertical strips, or would randomly output nothing at all.


Title: Re: Convert random file into image
Post by: Zncon on July 01, 2011, 04:33:18 PM
Careful about posting that if you have coins in it... It's still convertible back to the file.


Title: Re: Convert random file into image
Post by: SgtSpike on July 01, 2011, 04:34:41 PM
Feel free to convert it if you like.


Title: Re: Convert random file into image
Post by: bitlotto on July 01, 2011, 04:41:47 PM
but then couldn't get it to render a wallet file at width=100.
You uploaded your wallet!  :o If you have coins in them I'd put them in a different wallet now!


Title: Re: Convert random file into image
Post by: SgtSpike on July 01, 2011, 04:49:57 PM
but then couldn't get it to render a wallet file at width=100.
You uploaded your wallet!  :o If you have coins in them I'd put them in a different wallet now!
I did indeed... unconvert it if you like.  Lot's o coins in there!