Forum     

Go Back   Digit Technology Discussion Forum > Bandwidth Wastage > Chit-Chat
Register FAQ Calendar Mark Forums Read

Chit-Chat General discussions about anything that doesn't fit into the other sections to be had here


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 03-04-2008, 05:18 PM   #1 (permalink)
This.. Is.. Sparta..!!
 
remrow's Avatar
 
Join Date: Jan 2008
Posts: 46
Cool Making Images from HTML tables


Making images from HTML tables. Did you got it ?
If you haven't then it is like using no images but using clean HTML tables to make an image.

So I turned out to a pretty looking picture from Yahoo Answers Avatar, an avatar of someone that was 48 X 48 resolutions. You guys might be thinking it is too easy; NAH! Think again. It is 2304 cells, which will still wrinkle your fore head and open your mouth.

Here is how i did it.
http://likeweb.blogspot.com/2008/04/...tml-table.html

you guys are welcome to show your works too.
__________________
“Be peaceful, be courteous, obey the law, respect everyone, but if someone puts his hand on you, send him to the cemetery.” That’s what Malcolm X used to say.

http://likeweb.blogspot.com
remrow is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 03-04-2008, 05:26 PM   #2 (permalink)
हॉर्न ओके प्लीज़
 
victor_rambo's Avatar
 
Join Date: Sep 2007
Posts: 1,493
Default Re: Making Images from HTML tables

Instead use image slicers.
__________________
विक्टर रॅंबो - चाणकया प्रभावित व्यक्ति

गीक होना माँगता
victor_rambo is offline  
Old 03-04-2008, 11:44 PM   #3 (permalink)
This.. Is.. Sparta..!!
 
remrow's Avatar
 
Join Date: Jan 2008
Posts: 46
Default Re: Making Images from HTML tables

Do you mean to slice images and arrage them??
That is being used in many places nowdays , just their size is big. So making an image from the HTML tables is unusual thing to do.
__________________
“Be peaceful, be courteous, obey the law, respect everyone, but if someone puts his hand on you, send him to the cemetery.” That’s what Malcolm X used to say.

http://likeweb.blogspot.com
remrow is offline  
Old 04-04-2008, 07:32 AM   #4 (permalink)
TheSaint
 
NucleusKore's Avatar
 
Join Date: Jun 2004
Location: Antigua
Posts: 3,447
Default Re: Making Images from HTML tables

Unusual but interesting, not to mention time consuming!
__________________
http://www.neville.in
http://www.linuxrocks.in
"The Future Is Open"
NucleusKore is offline  
Old 04-04-2008, 11:38 PM   #5 (permalink)
This.. Is.. Sparta..!!
 
remrow's Avatar
 
Join Date: Jan 2008
Posts: 46
Smile Re: Making Images from HTML tables

Well the making of image i did on the post is now an old thing to do. I found out this code that does it all so fast and cheap timing.
It is a php code guys.

Code:
<?php
$image = 'picture.png';
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-type" content="text/html;charset=utf-8" /><title>Rendering "', $image, '"</title><style type="text/css">table, table * {margin:0;padding:0;border:none;font-size:1px;} td {width:1px;height:1px;}</style></head><body><p>Rendering image at "', $image, '".</p><table cellpadding="0" cellspacing="0" border="0" height="480" width="480">';
ob_flush();
$size = getimagesize($image);
$im = imagecreatefrompng($image);
for ($y=0,$ySize=$size[1]; $y<$ySize; $y++) {
    echo '<tr>';
    for ($x=0,$xSize=$size[0]; $x<$xSize; $x++) {
        $rgb = imagecolorsforindex($im, imagecolorat($im, $x, $y));
        $color = "rgb({$rgb['red']},{$rgb['green']},{$rgb['blue']})";
        echo '<td style="background-color:', $color ,';color:', $color,';" height="10" width="10"></td>';
    }
    echo '</tr>';
    ob_flush();
}
imagedestroy($im);
echo '</table></body></html>';
?>
Change through the bolded part to work with other jpg or gif images.
__________________
“Be peaceful, be courteous, obey the law, respect everyone, but if someone puts his hand on you, send him to the cemetery.” That’s what Malcolm X used to say.

http://likeweb.blogspot.com
remrow is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tables or Div Tag ? satyamy QnA (read only) 8 20-03-2008 04:14 PM
Secure Html Images ? boosters QnA (read only) 38 12-02-2008 01:18 PM
downloading images in an html page callmeastha Internet & WWW 2 05-07-2007 08:17 AM
HTML to images lamrinnirmal QnA (read only) 2 20-07-2005 07:42 PM
Making images of CD's....... nipun_the_gr8 QnA (read only) 13 19-08-2004 05:06 PM

 
Latest Threads
- by bhaskar
- by Soumik
- by trublu

Advertisement




All times are GMT +5.5. The time now is 06:07 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2