Forum Moderators: coopster

Message Too Old, No Replies

Any way to make an image out of a php page to post to another site?

         

chrisbrit74

6:59 am on Jan 12, 2011 (gmt 0)

10+ Year Member



Hello, I am new to this forum and would like to ask a question about php, or more specifically how to make an image from a partial specific section of a webpage.

I have a website that is soccer related. Members can make their own teams and they have page that shows their pitch with images of players on it, along with some text of points scored. This pitch page is generated by php. What I would like is for a user who is looking at their pitch to be able to click a button and it make a kind of snapshot image of their pitch, so that they could then post it onto another site or save the image to their computer.

Is this possible in php? I've seen talk in forums about using screengrab type approaches and also changing the page to pdf and then converting, however other information indicates that this can't be done in php.

The issue with a full screen grab, is that it might not show the whole pitch. The pitch is placed within a page, so unless the user happens to have the whole pitch area visible at that time, the screengrab wouldn't catch it. For example, if they have scrolled down to the bottom of the page, only a small area of the bottom of the pitch would be visible in the browser.

Is there some way to specify the location of of the boundary of the area that would like to make an image of?

Any input would be much appreciated. Thank you very much.

coopster

6:08 pm on Jan 14, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, chrisbrit74.

Do either of these previous discussions help?
How can i create screenshot of url? [webmasterworld.com]
How to get website thumbnails? [webmasterworld.com]