html2image code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ranchhod
    New Member
    • Jan 2006
    • 1

    html2image code

    i want a code for converting a selected portion of the html page into image file using javascript or php
  • Niheel
    Recognized Expert Moderator Top Contributor
    • Jul 2005
    • 2433

    #2
    You mean like take a screenshot? That would be hard to do; i believe.
    niheel @ bytes

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Can't be done with JavaScript, but could be done in PHP with the GD library. You could make a selection on the page, pass the coordinates either via Ajax or a form submit and PHP can return the src of the generated image.

      Comment

      Working...