By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,640 Members | 2,355 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,640 IT Pros & Developers. It's quick & easy.

html2image code

P: 1
i want a code for converting a selected portion of the html page into image file using javascript or php
Jan 26 '06 #1
Share this Question
Share on Google+
2 Replies


Expert Mod 100+
P: 2,327
You mean like take a screenshot? That would be hard to do; i believe.
Feb 3 '06 #2

acoder
Expert Mod 15k+
P: 16,027
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.
Jun 9 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.