convert html into image

Discussion in 'HTML & Website Design' started by chaudhary.adnan, Sep 2, 2009.

  1. #1
    How can convert html code into image using php or javascript or without both
     
    Last edited: Sep 2, 2009
    chaudhary.adnan, Sep 2, 2009 IP
  2. pneulameiro

    pneulameiro Peon

    Messages:
    440
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can you explain it more? What do you mean with convert html in images? Is it something like a printscreen?
     
    pneulameiro, Sep 2, 2009 IP
  3. chaudhary.adnan

    chaudhary.adnan Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes just like print screen but i want an image from seleted html part not a whole screen
     
    chaudhary.adnan, Sep 2, 2009 IP
  4. techbongo

    techbongo Active Member

    Messages:
    309
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #4
    Probably Shrinktheweb plugins can help you for the time being. However, it converts hosted webpages, not a piece of html code.
    http://www.shrinktheweb.com/shrinktheweb-plugins.htm

    This is a features which is still under development by php team. However, some Sourceforge projects are going on to do the same.

    Imagine, how hard it would be to identity css, script and html based patterns and printing it pixel by pixel into an image. I'm also in search of the same technique. But got no solutions. However, converting hosted web pages to images are applied in different websites, specially which use website screenshot generation feature.
     
    techbongo, Sep 2, 2009 IP
  5. jothree

    jothree Well-Known Member

    Messages:
    104
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #5
    you can push " printScreen" button in your keyboard

    and edit it in paint
     
    jothree, Sep 16, 2009 IP
  6. techbongo

    techbongo Active Member

    Messages:
    309
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #6
    If you don't know what you're saying, kindly don't reply. Probably, a webmaster's forum is not for you.
     
    techbongo, Sep 16, 2009 IP
  7. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #7
    Agree.

    Anyway, you can look into the GD library for php, not sure how well you know it or not. http://us3.php.net/manual/en/book.image.php

    It will allow you to generate images from text. You may need to do research on converting html to the proper formatting though, I never did that type.
     
    crath, Sep 16, 2009 IP
  8. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #8
    This is exactly what I do (just not in Paint). When a customer mails me a bloated 3MB tiff of a logo they want on their site for a "clickable partner link", it's sooo much easier to just go to the partner's site, printscreen, GIMP is already open, crop, saveas, upload, done.

    If the OP wants the abilities of ImageMagick, well, ImageMagick is pretty old and reliable and there seems to be a version of it for every major back-end language... PerlMagick, PythonMagick, etc. But the OP said like a screenshot but not the whole page... sounds like copy and crop to me, not command-line image creation, or anything awesome like SVGs. But that's just my interpretation of the requirements, they aren't very clear.
     
    Stomme poes, Sep 17, 2009 IP
  9. keddy1

    keddy1 Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    great .I was also looking for how to do it in php or javascript.I think am going the try these.If I face any problem I shall bother you all once again as am new to it and still learning the tips
     
    keddy1, Sep 17, 2009 IP
  10. techbongo

    techbongo Active Member

    Messages:
    309
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #10
    keddy, forget about bothering. Rather, we'll be helped if you discuss the progress of this project.
     
    techbongo, Sep 17, 2009 IP