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 Quote Link to comment 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() Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.