-2

Possible Duplicates:
Convert URL to screenshot (script).
PHP: How to capture browser window screen with php?

I have a URL and I want to convert that webpage screenshot to an image. Please let me know if we can do this using php or some other tools that can be used with PHP/Linux.

1

2 Answers 2

0

This isn't the best solution, but you could convert the HTML page to a PDF, then use imagemagick to convert the pdf to a jpeg using this command exec("convert sample.pdf sample.jpeg"). To convert HTML to pdf, see this question.

Convert HTML + CSS to PDF with PHP?

Sign up to request clarification or add additional context in comments.

1 Comment

I would look at Gordon's comment, if that is what your trying to do, the question he is showing is a MUCH more ideal solution than this one.
0

The shutter screenshot tool is able to do that.

It's in the menu: File -> New -> Web

Can be used with Linux and PHP on the same system. See the manpage for commandline options to be invoked from PHP.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.