dennismonsewicz Posted April 17, 2008 Share Posted April 17, 2008 Is there a way to take a screen shot using php and ajax controls? Like if you load the page in a frame and using ajax controls to take the screenshot Link to comment https://forums.phpfreaks.com/topic/101608-screenshots-with-php/ Share on other sites More sharing options...
GingerRobot Posted April 17, 2008 Share Posted April 17, 2008 If you're using windows and your PHP version is 5.2.2 or higher, then see: imagegrabwindow() Link to comment https://forums.phpfreaks.com/topic/101608-screenshots-with-php/#findComment-519838 Share on other sites More sharing options...
dennismonsewicz Posted April 17, 2008 Author Share Posted April 17, 2008 aight i will check it out... Is there anyway to use this so that a user can select the screen shot he or she is wanting to use? Link to comment https://forums.phpfreaks.com/topic/101608-screenshots-with-php/#findComment-519843 Share on other sites More sharing options...
GingerRobot Posted April 17, 2008 Share Posted April 17, 2008 Is there anyway to use this so that a user can select the screen shot he or she is wanting to use? I'm not really sure what you mean. Link to comment https://forums.phpfreaks.com/topic/101608-screenshots-with-php/#findComment-519845 Share on other sites More sharing options...
dennismonsewicz Posted April 17, 2008 Author Share Posted April 17, 2008 sorry for my bad english, I don't know what i was thinking lol. So a user loads a page in a frame and using php and ajax they can select an area of the screen they would like to take a screenshot of. Is there a way to do this? Link to comment https://forums.phpfreaks.com/topic/101608-screenshots-with-php/#findComment-519850 Share on other sites More sharing options...
GingerRobot Posted April 17, 2008 Share Posted April 17, 2008 Hmm, not sure if thats quite possible. You could do something like: 1.) User chooses what webpage they want a screenshot of. 2.) Use PHP to create the screenshot of the whole page with the above function 3.) Output the whole screenshot 4.) Use javascript to select an area of the image 5.) Have PHP trim the image based on that selection Link to comment https://forums.phpfreaks.com/topic/101608-screenshots-with-php/#findComment-519874 Share on other sites More sharing options...
dennismonsewicz Posted April 17, 2008 Author Share Posted April 17, 2008 gotcha... I will try your suggestions. I was just wondering cause I know using AJAX you can trim an image so I was wondering if it was possible using a website as the source instead of an image Link to comment https://forums.phpfreaks.com/topic/101608-screenshots-with-php/#findComment-519900 Share on other sites More sharing options...
GingerRobot Posted April 17, 2008 Share Posted April 17, 2008 Well if you already have some javascript/ajax to help you trim an image, it should just be a case of getting that image with PHP first. Link to comment https://forums.phpfreaks.com/topic/101608-screenshots-with-php/#findComment-519904 Share on other sites More sharing options...
dennismonsewicz Posted April 17, 2008 Author Share Posted April 17, 2008 aight I shall give it a shot. Thanks for all of your help Link to comment https://forums.phpfreaks.com/topic/101608-screenshots-with-php/#findComment-519912 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.