The goal of this project is to have an Image to HTML table converter.
The PHP script will need to load an image from file and convert the image to a HTML table.
The HTML table cells will be individually colored to generate the picture in the file.
The PHP generated HTML table and its HTML code will be displayed as the final result.
The requirement is a web page to display only one button titled as "Load File"
When a user clicks on this button they are prompted to load an image file from their desktop.
BITMAP, GIF, JPG and PNG must be supported as valid file format types.
Once the user has chosen an image file, it needs to be loaded into memory with PHP and converted into a HTML table.
Every pixel in the image file should have a corresponding HTML table cell (<td> tag).
If the pixel in the image file is blue then the corresponding <td> tag should be blue as well.
<td> tags should have widths of 1px and heights of 1px.
<td> tag bgcolors should be set to the color found in the corresponding pixel.
For example, if the user loads a 2x2 image with the following colors:
Then the PHP script should produce the code shown below in a text field and also displayed as an actual HTML table.
<table width="2" border="0" cellspacing="0" cellpadding="0">
<td bgcolor="#FF0000" width="1" height="1"></td>
<td bgcolor="#00FF00" width="1" height="1"></td>
<td bgcolor="#0000FF" width="1" height="1"></td>
<td bgcolor="#FFFFFF" width="1" height="1"></td>
The Project will have 2 phases.
Phase 1 is to simply convert image pixels to corresponding <td> tags in a HTML table of same width and height as the image.
Phase 2 is to optimize the code so that <td> tags who have neighboring <td> tags with the same color are grouped together using colspan and/or rowpspans,
The entire project should be 1 PHP file.
15 freelancers are bidding on average $133 for this job
Hello, I did something similar few years ago, I still have code somewhere, but I can do it from scratch also...it won't take more then 3 days, and I can start right away. Regards, Predrag
We have really experienced in web design and development, Graphic Design and Landing page Design, Logo, Banner, Brochure, HTML, XHTML, [url removed, login to view] open message board for previous results and let's award us.
Sir. This work is very easy by using PHP with Imagemagick. I have very long experinces with PHP and Imagemagick. Please allow me to work on this job. I will give the best. Thank you.
Hi I have enough experience in php to help you with this project. I thought it was interesting so i'm working on it. I can have the php file working for you in two hours. Almost ready.
Hello, easily doable via PHP-GD library, basically I would read the color values and translate it into hex values so I can generate the html. sounds like a fun task ;) Regards, Gunter