Go to Post The minute you get a functioning mechanism start working on a better one - [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-12-2003, 23:00
golf_cart_john golf_cart_john is offline
Registered User
AKA: John W
FRC #0095 (Grasshoppers)
Team Role: Coach
 
Join Date: Sep 2003
Rookie Year: 2004
Location: Lebanon, NH
Posts: 35
golf_cart_john will become famous soon enoughgolf_cart_john will become famous soon enough
HTML imaging idea

A bit ago, I came up with an interesting idea for representing images using HTML. I can see very little practical purpose for this concept, but some of you might find it useful. I've written a small C++ routine that converts a bitmap image into HTML code, and displays the image correctly. To see what this looks like, go to http://www.geocities.com/htmlgames/h...ging_demo.html . Look at its source to see something very interesting. Right now, the translation results in very inefficient image encoding, about 25 bytes of html for 3 bytes of BMP format image. If you want to see the code, send me a private message & I'll send you the code. I would love it if someone wants to make it more efficient (maybe with JPEG-style compression) and actually use it for something.
  #2   Spotlight this post!  
Unread 02-12-2003, 23:44
Brandon Martus's Avatar Unsung FIRST Hero
Brandon Martus Brandon Martus is offline
busy.
AKA: B. Slash Kamen
no team
 
Join Date: May 2001
Rookie Year: 1998
Location: Nevada, TX USA
Posts: 5,271
Brandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond repute
Send a message via ICQ to Brandon Martus Send a message via AIM to Brandon Martus Send a message via Yahoo to Brandon Martus
Re: HTML imaging idea

maybe its me, but I don't see anything.

Using Mozilla Firebird. Tried in IE6, and it crashed.
__________________
Brandon Martus
e-mail
  #3   Spotlight this post!  
Unread 03-12-2003, 00:08
Noah's Avatar
Noah Noah is offline
Code Monkey
#0861 (The Gondobots)
Team Role: Programmer
 
Join Date: Apr 2002
Location: Venice, California
Posts: 139
Noah has a spectacular aura aboutNoah has a spectacular aura about
Send a message via AIM to Noah
Re: HTML imaging idea

Quote:
Originally Posted by Brandon Martus
maybe its me, but I don't see anything.

Using Mozilla Firebird.
Confirmation: Firebird doesn't like this.
Mozilla 1.5 doesn't either.
__________________
"It's broken? NOOAAHH!!! This is your doing, isn't it!"

"We can fix it in the software!"
"It's a BROKEN GEAR!"
  #4   Spotlight this post!  
Unread 03-12-2003, 08:27
golf_cart_john golf_cart_john is offline
Registered User
AKA: John W
FRC #0095 (Grasshoppers)
Team Role: Coach
 
Join Date: Sep 2003
Rookie Year: 2004
Location: Lebanon, NH
Posts: 35
golf_cart_john will become famous soon enoughgolf_cart_john will become famous soon enough
Re: HTML imaging idea

Try http://www.geocities.com/htmlgames/small_demo.html . It's a smaller version of the same stuff. The other image is a massive amount of HTML (because of my program's inefficiency), and it may have taken up enough memory to make the browser crash. Thanks for letting me know.
  #5   Spotlight this post!  
Unread 03-12-2003, 08:34
Brandon Martus's Avatar Unsung FIRST Hero
Brandon Martus Brandon Martus is offline
busy.
AKA: B. Slash Kamen
no team
 
Join Date: May 2001
Rookie Year: 1998
Location: Nevada, TX USA
Posts: 5,271
Brandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond repute
Send a message via ICQ to Brandon Martus Send a message via AIM to Brandon Martus Send a message via Yahoo to Brandon Martus
Re: HTML imaging idea

still not seeing anything (in IE6)
__________________
Brandon Martus
e-mail
  #6   Spotlight this post!  
Unread 03-12-2003, 08:44
golf_cart_john golf_cart_john is offline
Registered User
AKA: John W
FRC #0095 (Grasshoppers)
Team Role: Coach
 
Join Date: Sep 2003
Rookie Year: 2004
Location: Lebanon, NH
Posts: 35
golf_cart_john will become famous soon enoughgolf_cart_john will become famous soon enough
Re: HTML imaging idea

Quote:
Originally Posted by Brandon Martus
still not seeing anything (in IE6)
That's really weird. You're not seeing a little GIF-like graphic of the number 95? or a similar graphic about Flower Power? It works in IE 5.5. Does IE 6 crash?
  #7   Spotlight this post!  
Unread 03-12-2003, 09:26
Brandon Martus's Avatar Unsung FIRST Hero
Brandon Martus Brandon Martus is offline
busy.
AKA: B. Slash Kamen
no team
 
Join Date: May 2001
Rookie Year: 1998
Location: Nevada, TX USA
Posts: 5,271
Brandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond repute
Send a message via ICQ to Brandon Martus Send a message via AIM to Brandon Martus Send a message via Yahoo to Brandon Martus
Re: HTML imaging idea

oh. i have been seeing it then. thought those were part of the Geocities ads or something.
__________________
Brandon Martus
e-mail
  #8   Spotlight this post!  
Unread 03-12-2003, 13:45
leo_singer's Avatar
leo_singer leo_singer is offline
Registered User
#1111 (Seahawks)
Team Role: Programmer
 
Join Date: Mar 2003
Rookie Year: 2003
Location: Edgewater, MD
Posts: 15
leo_singer is an unknown quantity at this point
Why no one is seeing anything

The reason it doesn't show up in some browsers is that some browsers skip over rendering table datum (<td>...</td>) elements if they are empty. One common solution if you need an empty table cell that just takes up space and contains a colored background is to put a nonbraking space inside, like this:

<td>&nbsp;</td>

By the way, with a program like this you might try implementing a GIF-style lossless compression scheme, whereby if you have several identical adjacent pixels you represent it as a single <td>...</td> with the width attribute greater than 1.
  #9   Spotlight this post!  
Unread 03-12-2003, 13:55
djcapelis's Avatar
djcapelis djcapelis is offline
Fried Manic Custard
None #0675 (Geeks with Power Tools)
Team Role: Programmer
 
Join Date: May 2003
Rookie Year: 2001
Location: Rohnert Park, CA
Posts: 129
djcapelis will become famous soon enoughdjcapelis will become famous soon enough
Send a message via ICQ to djcapelis Send a message via AIM to djcapelis Send a message via Yahoo to djcapelis
Re: HTML imaging idea

GIMP has been able to output to standards compliant all-browser compatable HTML with images for a long time now. What's different about this?

Or perhaps you just didn't know about it... you coulda just used their code (under appropriate license)... it's an open-source project after all.

I would encourage anyone who feels the need to convert a format to HTML use GIMP. It's not limited with the bmp->html either as anything it can open can be saved as HTML.

www.gimp.org
__________________
"I have more friends than enemies, I'm working to resolve the issue."
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
An idea for the 2000 games..(is six weeks enough?) archiver 1999 18 23-06-2002 23:17
4 divisions in florida... (was it my idea?) archiver 2001 7 23-06-2002 23:13
Another idea looking for comments archiver 1999 16 23-06-2002 22:01
great storyboard idea SharkBite 3D Animation and Competition 0 15-01-2002 20:39
Just an idea... Clark Gilbert CD Forum Support 1 06-11-2001 08:30


All times are GMT -5. The time now is 05:31.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi