[Solved] How do I Convert JPG file to HTML Code so Picture Displays on Website

by 9 replies
73
Can someone please help me and tell me how to convert a jpg picture file to HTML code so I can display the picture (a small size picture) on my website?

Thanks
#website design #code #convert #displays #file #html #jpg #picture #website
  • You can't actually convert a jpg into html code I'm afraid. Where you perhaps needing to know the html code to make the image display at the size you want?
    • [1] reply
    • Yes, I probably didn't word it right. How do I get a jpg (or bmp) picture or file on a website?

      thanks
  • Here's the code you need:

    HTML Code:
    <img src="http://www.yoursite.com/yourimage.jpg" height="100" width="100" />
    You just need to fill in the src= part with your own image file name, and set the height and width to whatever size you want.

    Hope that helps!
    • [ 1 ] Thanks
    • [1] reply
  • Actually, you can convert an image to HTML :p

    Though I dont recommend it since it will skyrocket the file size of your page:
    Neil Fraser: Software: Image to HTML Converter
    Example of Warrior Forum logo:
    img2html: http://warriorforum.com/images/site_01.gif

    What it does is it maps out the color of every pixel of the image and then creats rows of 1x1px <TABLE> cells with the background color of the pixel corresponding with that location of the image.
    • [1] reply
    • Hahaha, I totally forgot about this, I coded the exact same thing on a really boring winter afternoon a couple of years ago ... it's great to know I am not the only one with crazy ideas.
  • Ha, funny! Someone out there has an surplus of brains and free time
    • [1] reply
  • Banned
    [DELETED]
  • Banned
    [DELETED]
  • [moderated: copilule, next time look at the date! - the poster revived a thread from 2009!]

Next Topics on Trending Feed