TXT file rendering as PNG

Deuce
avatar
rank Elder

Elder


Posts: 1625
Joined: 2005-11-20
Location: STL

I ran across a site at work the other day that one of the designers used a .TXT file as the background image and it actually rendered out. If I tried to view the background it told me to download it, so I did and it's all in gibberish.

how does this work?
why does this work?
is this a horrible thing to do?
is there a reason to ever do it?

All the main questions that come along with it.

I tried to Google it but I keep coming up with converting Text to PNG, PDF, etc spam crap-ware.

Any help or information would be appreciate.

Thanks!!

all. <Dictionary.com http://dictionary.reference.com/browse/all>

Triumph
Triumph's picture
rank Moderator

Moderator


Posts: 5061
Joined: 2005-02-03
Location: Pennsyltucky, USA

Did it have a mime-type

Did it have a mime-type attributed to it? image/png?

gary.turner
gary.turner's picture
rank Moderator

Moderator


Posts: 5645
Joined: 2004-06-25
Location: Dallas

Was this viewable in IE? IE

Was this viewable in IE? IE will sniff the file's apparent type and ignore the mime-type. I've not seen it with images, but you just flat cannot view a text file version of an html page.

cheers,

gary

A pianist who has learned the wrong system of fingering cannot become a virtuoso until he has laboriously taught himself the proper method.

My site is slo-o-owly being reconstructed; visit anyway.

Tom L
Tom L's picture
rank Enthusiast

Enthusiast


Posts: 90
Joined: 2005-09-23
Location: Liverpool

Got a link Deuce?

Got a link Deuce?