TXT file rendering as PNG
Posted: Wed, 2008-04-02 21:40
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>


Moderator
Posts: 5061
Joined: 2005-02-03
Location: Pennsyltucky, USA
Did it have a mime-type
Posted: Wed, 2008-04-02 22:10
Did it have a mime-type attributed to it? image/png?
Moderator
Posts: 5645
Joined: 2004-06-25
Location: Dallas
Was this viewable in IE? IE
Posted: Thu, 2008-04-03 03:42
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.
Enthusiast
Posts: 90
Joined: 2005-09-23
Location: Liverpool
Got a link Deuce?
Posted: Thu, 2008-04-03 09:00
Got a link Deuce?