Closed

Convert IMG to HTML Table - PHP

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:

[Red][Green]

[Blue]White]

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">

<tr>

<td bgcolor="#FF0000" width="1" height="1"></td>

<td bgcolor="#00FF00" width="1" height="1"></td>

</tr>

<tr>

<td bgcolor="#0000FF" width="1" height="1"></td>

<td bgcolor="#FFFFFF" width="1" height="1"></td>

</tr>

</table>

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.

Skills: HTML, Javascript, PHP

See more: image html, img table, html to php converter, ff0000, convert text to gif image, convert png image to text, convert gif to text format, convert gif to text file, convert gif to text, convert gif image to text, convert gif file to text, 0000ff red, 0000ff, img, image to html page, html table, convert png, convert image to, php load html, optimize php code, table jpg, html table jpg, table set html, generate html, optimize html

About the Employer:
( 0 reviews ) Raleigh, United States

Project ID: #5162482

15 freelancers are bidding on average $133 for this job

pegla

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

$147 USD in 3 days
(25 Reviews)
5.3
ssahilsl

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.

$205 USD in 7 days
(103 Reviews)
6.8
SergeyH

Hi Can develop this script in 1-2 days (maybe +1 day for phase2). No milestone release needed before you will see results. My skills: 3+ years relationship :) with • LAMP(LEMP) (Linux server optimization) • eC More

$110 USD in 2 days
(18 Reviews)
4.6
royalmediaro

This seems like a pretty straightforward project. I have experience with image handling through PHP. I'm online on Skype 12-16 hours a day, and i check my email every time i get the chance (which is basically hou More

$170 USD in 3 days
(3 Reviews)
3.8
Meagan26

Hello, I have read through your project and I am incredibly interested in taking on your project. I am an experienced developer with a diploma in the field of web development. I have been working in the field of we More

$250 USD in 5 days
(11 Reviews)
3.4
ecaresoftech

Hi, We can do it, Please confirm us so we can start our work. Really our wish to work with you. I am waiting for your kind reply. Lal

$91 USD in 5 days
(2 Reviews)
1.6
protocyber

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.

$98 USD in 2 days
(3 Reviews)
3.3
symbal

Greetings, I could create this functionality for you today within a matter of hours for you if you like. I would create the project in two small parts (a client side javascript object to handle interaction and f More

$55 USD in 1 day
(1 Review)
0.8
PavalSoft

We are sound knowledge in mobile apps, web programming, PHP, Open source, Css, HTML5, Animation, 3D modeling, graphic design, SEO and SMO....

$242 USD in 7 days
(1 Review)
0.6
amit099

I have a background in graphic design . Also i am comfortable with HTML I am trained in computer graphics packages such as Dreamweaver, Photoshop, word press, joomla, php and Paint Shop Pro as well as knowledge of Flas More

$111 USD in 2 days
(0 Reviews)
0.0
l2mt

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.

$111 USD in 1 day
(0 Reviews)
0.0
stevenkl

Hi, There are a few things that come into mind. 1: What php library will be used ( i have prepared an example with Imagick) most common are Imagick and GD 2: Images can only be really represented properly by using r More

$66 USD in 1 day
(0 Reviews)
0.0
atopcoder

I can help you implementing this php image conversion with cheapest cost, good quality of work, and within a short time limit. I can finish it by today

$155 USD in 1 day
(0 Reviews)
0.0
Chuck73

Done -> Phase 1: [url removed, login to view] Phase 2: [url removed, login to view] Form: [url removed, login to view] Hi there. How b More

$149 USD in 0 days
(0 Reviews)
3.4
freakazoo

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

$35 USD in 2 days
(0 Reviews)
0.0