Donate SIGN UP

webpage+graphics all in one htmlfile possible?

Avatar Image
bluedolphin | 06:15 Fri 20th Feb 2004 | Technology
5 Answers
Is it possible to create a webpage that has a graphic in it and text and lines without having to link to those separate files...what I want is to have all the stuff in one file...so much easier for storing and sending....anyone got any suggestions?
Gravatar

Answers

1 to 5 of 5rss feed

Best Answer

No best answer has yet been selected by bluedolphin. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
Short answer - no The webpage may be written in several different formats, HTML, PHP, ASP for example but each file will only tell the browser what things (text etc) to display and how to display them. They can contain information on pictures and how to show them but can't contain the actual picture in the file so you'd still have to have a seperate file with the graphic in
Despite the thoroughly correct answer by iwbus, there is actually a way to present things that look like images purely through HTML. I found a program to do this, and when I get home I'll find it and tell you the name and where to find it.

Simply put, the program will examine the image file, then create an extremely complicated table, every cell one pixel in width and height), and change the cells background colour to the correct colour of the pixel from the image.
It's a good point SavageMonkey but that would mean a hellishly bit file. I think there is a way to present GIF files in PHP but I doubt this would give a reasonable size of code either
Yes iwbus I tested the program some time ago and the filesize of the HTML was actually about ten times as big as the original image size. Also, with large images there is a huge amount of processing power needed, almost crashed my machine :-)

If you want to use it though, search on google for "image 2 html" or something like that, and you're bound to find something.
I've never done it, but there is probably some way to embed things into a single document in precisely the way it's done for a multi-part MIME email.

1 to 5 of 5rss feed

Do you know the answer?

webpage+graphics all in one htmlfile possible?

Answer Question >>

Related Questions

Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.