Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,298 members, 7,815,527 topics. Date: Thursday, 02 May 2024 at 01:59 PM

How Do I Convert Photo To Html Code ? - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / How Do I Convert Photo To Html Code ? (2347 Views)

Beginners Guide To HTML/CSS / Introduction To Html Ebook / How Do I Convert .mdb Files To .exe Files (2) (3) (4)

(1) (Reply) (Go Down)

How Do I Convert Photo To Html Code ? by Nobody: 5:27pm On May 08, 2012
I want to convert a photo to html codes, how do i do dis; is there any site or softwafe for doing dis ?
Re: How Do I Convert Photo To Html Code ? by delomos(m): 5:53pm On May 08, 2012
Not possible.
Re: How Do I Convert Photo To Html Code ? by csharpjava(m): 10:37pm On May 08, 2012
You can use input output streams to read and then write the the image file out as binary digits, then convert the binary codes to hexadecimal codes which are used for colour codes in HTML. You will need to understand low level programming in order to pull this through.
Re: How Do I Convert Photo To Html Code ? by mkwayisi: 12:01pm On May 24, 2012
@delomos: Not true. Anything is possible under the sun. You just have to look deeper.

@csharpjava: WTF! Are you kidding?

@OP: You will surely need *deep* low-level programming and image manipulation knowledge. I'd really like to see you start something on this. You'll do millions of web developers around the globe a great deal of good.
Re: How Do I Convert Photo To Html Code ? by ektbear: 1:56pm On May 24, 2012
I don't think that this is possible.

HTML is purely for describing markup.

Photos are binary data.

How would you map a single pixel to HTML, for example?

Of course, you can figure out a mapping. But not one that when you open up in a brower, will display that pixel.

Unless you just plan on doing an <img> tag for that pixel. Which is sort of cheating..if you allow yourself to just reference the pixel with an image tag, then you may as well just reference the photo with the same tag grin
Re: How Do I Convert Photo To Html Code ? by csharpjava(m): 3:36pm On May 24, 2012
mkwayisi: @delomos: Not true. Anything is possible under the sun. You just have to look deeper.

@csharpjava: WTF! Are you kidding?

I'm not kidding. See this link that does it for you online http://www.patternmedia.com/projects/image_to_html_converter
Re: How Do I Convert Photo To Html Code ? by delomos(m): 4:03pm On May 24, 2012
csharpjava:

I'm not kidding. See this link that does it for you online http://www.patternmedia.com/projects/image_to_html_converter

I stand correct, my apologies @OP ^^ pretty much answers the question.

Aside academia, I'm really not sure the practicum for this, @OP, what are you using it for?
Re: How Do I Convert Photo To Html Code ? by ektbear: 11:16pm On May 24, 2012
Eh... It takes 4x4 pixel blocks, seems to average the color over each block.

I suppose if that is the type of low-quality conversion you are looking for, then sure.
Re: How Do I Convert Photo To Html Code ? by NewJaja(m): 7:15pm On Jun 06, 2017
I think u nid a CGI- Computer Generated Image training in addition to low level language.

(1) (Reply)

Suppose That You Had Nairaland's Friend Graph / Are There Any Json, Rss Or Xml Feeds For Nairaland? / My Experience On A Software Project

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 11
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.