Forum Moderators: coopster

Message Too Old, No Replies

Screen Capture

         

Tommybs

11:16 am on Feb 8, 2009 (gmt 0)

10+ Year Member



Hi all,

Does anybody know if it is possible to grab a capture of a particular div using php? What I would like to do is have a drag and drop container where users could potentially position a number of images using javascript and then I would like them to be able to save a copy of the result as a single image. I've been looking through the GD library to find something but I would appreciate if anyone could point me towards the correct function.

Would it be simpler to do this as javascript? If not I'll have to look at another way of doing this

Many Thanks

Sekka

3:25 pm on Feb 9, 2009 (gmt 0)

10+ Year Member



There's no way to really do what you want. You can't capture the user's broswer. However, there are ways around what you are after.

What I would suggest is the JavaScript passes all the XY coordiantes of the images the user placed to PHP and then PHP reconstructs what the user has done with GD, and saves it as an image.